From 033e9f8cde5a7feec1334888aec69def99c945b5 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 2 Oct 2008 16:49:05 +0200 Subject: use no_argument, required_argument, optional_argument in longopts --- extras/cdrom_id/cdrom_id.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras/cdrom_id/cdrom_id.c') diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 627ae0dee4..381aa70bed 100644 --- a/extras/cdrom_id/cdrom_id.c +++ b/extras/cdrom_id/cdrom_id.c @@ -503,9 +503,9 @@ int main(int argc, char *argv[]) { struct udev *udev; static const struct option options[] = { - { "export", 0, NULL, 'x' }, - { "debug", 0, NULL, 'd' }, - { "help", 0, NULL, 'h' }, + { "export", no_argument, NULL, 'x' }, + { "debug", no_argument, NULL, 'd' }, + { "help", no_argument, NULL, 'h' }, {} }; const char *node = NULL; -- cgit v1.2.3-54-g00ecf