]> granicus.if.org Git - strace/blobdiff - hdio.c
nlattr: add UID/GID netlink attribute decoders
[strace] / hdio.c
diff --git a/hdio.c b/hdio.c
index 97eca582bd2f8c24b74c1d3a3f7c398199f7f5ca..9db1d26b5fdac60ea4c00115e3362d8abd0bb740 100644 (file)
--- a/hdio.c
+++ b/hdio.c
@@ -1,6 +1,7 @@
 /*
  * Copyright (c) 2009, 2010 Jeff Mahoney <jeffm@suse.com>
  * Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2016-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -37,7 +38,7 @@ typedef struct hd_geometry struct_hd_geometry;
 #include MPERS_DEFS
 
 MPERS_PRINTER_DECL(int, hdio_ioctl, struct tcb *const tcp,
-                  const unsigned int code, const kernel_ureg_t arg)
+                  const unsigned int code, const kernel_ulong_t arg)
 {
        switch (code) {
        case HDIO_GETGEO:
@@ -60,5 +61,5 @@ MPERS_PRINTER_DECL(int, hdio_ioctl, struct tcb *const tcp,
                return RVAL_DECODED;
        }
 
-       return RVAL_DECODED | 1;
+       return RVAL_IOCTL_DECODED;
 }