]> granicus.if.org Git - strace/blobdiff - fetch_struct_statfs.c
Introduce generic STRINGIFY and STRINGIFY_VAL macros
[strace] / fetch_struct_statfs.c
index 9379550e67b768f6788012c8ddc273eaa3ffaff6..4fba0f75d790a328e1ea8e0b1661a8fc3524df82 100644 (file)
@@ -40,7 +40,7 @@ typedef struct statfs64 struct_statfs64;
 #include "statfs.h"
 
 MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
-                  struct tcb *const tcp, const kernel_ureg_t addr,
+                  struct tcb *const tcp, const kernel_ulong_t addr,
                   struct strace_statfs *const p)
 {
        struct_statfs b;
@@ -79,12 +79,12 @@ MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
 #endif
 
 MPERS_PRINTER_DECL(bool, fetch_struct_statfs64,
-                  struct tcb *const tcp, const kernel_ureg_t addr,
-                  const unsigned long size, struct strace_statfs *const 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