chiark / gitweb /
use no_argument, required_argument, optional_argument in longopts
[elogind.git] / extras / usb_id / usb_id.c
index 215455212042ce568c8dff0334033554a39fb508..f39496b07c7a47bf962e22da42173c585a2e4bcb 100644 (file)
@@ -359,10 +359,10 @@ int main(int argc, char **argv)
        char devpath[MAX_PATH_LEN];
        static int export;
        static const struct option options[] = {
-               { "usb-info", 0, NULL, 'u' },
-               { "num-info", 0, NULL, 'n' },
-               { "export", 0, NULL, 'x' },
-               { "help", 0, NULL, 'h' },
+               { "usb-info", no_argument, NULL, 'u' },
+               { "num-info", no_argument, NULL, 'n' },
+               { "export", no_argument, NULL, 'x' },
+               { "help", no_argument, NULL, 'h' },
                {}
        };