]> granicus.if.org Git - strace/blobdiff - fetch_struct_statfs.c
Introduce generic STRINGIFY and STRINGIFY_VAL macros
[strace] / fetch_struct_statfs.c
index ddb248b40f41e170f832681112ec602cbc3648c0..4fba0f75d790a328e1ea8e0b1661a8fc3524df82 100644 (file)
@@ -40,7 +40,8 @@ typedef struct statfs64 struct_statfs64;
 #include "statfs.h"
 
 MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
-                  struct tcb *tcp, const long addr, struct strace_statfs *p)
+                  struct tcb *const tcp, const kernel_ulong_t addr,
+                  struct strace_statfs *const p)
 {
        struct_statfs b;
 
@@ -78,12 +79,12 @@ MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
 #endif
 
 MPERS_PRINTER_DECL(bool, fetch_struct_statfs64,
-                  struct tcb *tcp, const long addr, const unsigned long size,
-                  struct strace_statfs *p)
+                  struct tcb *const tcp, const kernel_ulong_t addr,
+                  const kernel_ulong_t size, struct strace_statfs *const p)
 {
        struct_statfs64 b;
 
-        if (sizeof(b) != size
+       if (sizeof(b) != size
 #ifdef COMPAT_STATFS64_PADDED_SIZE
            && sizeof(b) != COMPAT_STATFS64_PADDED_SIZE
 #endif