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/udevadm-settle.c | |
parent | 842dacb76f2f98537554683d7cccec4710779a8a (diff) |
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'udev/udevadm-settle.c')
-rw-r--r-- | udev/udevadm-settle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index d066ef90ce..5e5a080bc8 100644 --- a/udev/udevadm-settle.c +++ b/udev/udevadm-settle.c @@ -36,8 +36,8 @@ int udevadm_settle(struct udev *udev, int argc, char *argv[]) { static const struct option options[] = { - { "timeout", 1, NULL, 't' }, - { "help", 0, NULL, 'h' }, + { "timeout", required_argument, NULL, 't' }, + { "help", no_argument, NULL, 'h' }, {} }; int timeout = DEFAULT_TIMEOUT; |