]> granicus.if.org Git - strace/blobdiff - fetch_struct_flock.c
travis: add build environment information to the travis log
[strace] / fetch_struct_flock.c
index cd195e2f3040a7cdf5d97eb05b695f50f032281d..1a57edfc32f3a533533af69577266bee81de880b 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -51,7 +52,8 @@ typedef struct_kernel_flock64 struct_flock64;
         && FLOCK_MEMBERS_EQ(type, l_len) \
         && FLOCK_MEMBERS_EQ(type, l_pid))
 
-MPERS_PRINTER_DECL(bool, fetch_struct_flock)(struct tcb *tcp, const long addr, void *p)
+MPERS_PRINTER_DECL(bool, fetch_struct_flock, struct tcb *const tcp,
+                  const kernel_ulong_t addr, void *const p)
 {
        struct_kernel_flock64 *pfl = p;
        struct_flock mfl;
@@ -70,7 +72,8 @@ MPERS_PRINTER_DECL(bool, fetch_struct_flock)(struct tcb *tcp, const long addr, v
        return true;
 }
 
-MPERS_PRINTER_DECL(bool, fetch_struct_flock64)(struct tcb *tcp, const long addr, void *p)
+MPERS_PRINTER_DECL(bool, fetch_struct_flock64, struct tcb *const tcp,
+                  const kernel_ulong_t addr, void *const p)
 {
        struct_kernel_flock64 *pfl = p;
        struct_flock64 mfl;