#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;