summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-02 16:49:05 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-02 16:49:05 +0200
commit033e9f8cde5a7feec1334888aec69def99c945b5 (patch)
treecdffede0d38c9fa8d80b93608d5c6e423547610a /udev/udevadm-test.c
parent842dacb76f2f98537554683d7cccec4710779a8a (diff)
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index ba0852871a..f4b0125d3c 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -83,10 +83,10 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
int rc = 0;
static const struct option options[] = {
- { "action", 1, NULL, 'a' },
- { "subsystem", 1, NULL, 's' },
- { "force", 0, NULL, 'f' },
- { "help", 0, NULL, 'h' },
+ { "action", required_argument, NULL, 'a' },
+ { "subsystem", required_argument, NULL, 's' },
+ { "force", no_argument, NULL, 'f' },
+ { "help", no_argument, NULL, 'h' },
{}
};