]> granicus.if.org Git - strace/blobdiff - ptp.c
ioctl: print unrecognized ioctl codes in _IOC(dir,type,nr,size) format
[strace] / ptp.c
diff --git a/ptp.c b/ptp.c
index 35cf685eb35d91af4c4d23fdc89477f725cd709c..dbd35834880442a501104d8d4f1a9a207f9b56d9 100644 (file)
--- a/ptp.c
+++ b/ptp.c
@@ -2,15 +2,10 @@
 #include <sys/ioctl.h>
 #include <linux/ptp_clock.h>
 
-static const struct xlat ptp_flags_options[] = {
-       XLAT(PTP_ENABLE_FEATURE),
-       XLAT(PTP_RISING_EDGE),
-       XLAT(PTP_FALLING_EDGE),
-       { 0,                    NULL                    }
-};
+#include "xlat/ptp_flags_options.h"
 
-
-int ptp_ioctl(struct tcb *tcp, long code, long arg)
+int
+ptp_ioctl(struct tcb *tcp, const unsigned int code, long arg)
 {
        if (!verbose(tcp))
                return 0;