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/udevd.c | |
parent | 842dacb76f2f98537554683d7cccec4710779a8a (diff) |
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'udev/udevd.c')
-rw-r--r-- | udev/udevd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index 9783fe4e7c..a821ee7d8e 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -784,11 +784,11 @@ int main(int argc, char *argv[]) const char *value; int daemonize = 0; static const struct option options[] = { - { "daemon", 0, NULL, 'd' }, - { "debug-trace", 0, NULL, 't' }, - { "debug", 0, NULL, 'D' }, - { "help", 0, NULL, 'h' }, - { "version", 0, NULL, 'V' }, + { "daemon", no_argument, NULL, 'd' }, + { "debug-trace", no_argument, NULL, 't' }, + { "debug", no_argument, NULL, 'D' }, + { "help", no_argument, NULL, 'h' }, + { "version", no_argument, NULL, 'V' }, {} }; int rc = 1; |