diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 16:49:05 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 16:49:05 +0200 |
commit | 033e9f8cde5a7feec1334888aec69def99c945b5 (patch) | |
tree | cdffede0d38c9fa8d80b93608d5c6e423547610a /udev/lib | |
parent | 842dacb76f2f98537554683d7cccec4710779a8a (diff) |
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'udev/lib')
-rw-r--r-- | udev/lib/test-libudev.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index 5d19d5dd75..47fbf3b42a 100644 --- a/udev/lib/test-libudev.c +++ b/udev/lib/test-libudev.c @@ -273,12 +273,12 @@ int main(int argc, char *argv[], char *envp[]) { struct udev *udev = NULL; static const struct option options[] = { - { "syspath", 1, NULL, 'p' }, - { "subsystem", 1, NULL, 's' }, - { "socket", 1, NULL, 'S' }, - { "debug", 0, NULL, 'd' }, - { "help", 0, NULL, 'h' }, - { "version", 0, NULL, 'V' }, + { "syspath", required_argument, NULL, 'p' }, + { "subsystem", required_argument, NULL, 's' }, + { "socket", required_argument, NULL, 'S' }, + { "debug", no_argument, NULL, 'd' }, + { "help", no_argument, NULL, 'h' }, + { "version", no_argument, NULL, 'V' }, {} }; struct udev_enumerate *udev_enumerate; |