summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-11-13 07:31:04 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-11-13 07:31:04 +0100
commit50025605e0f9942da513c9dcfde289495afefd17 (patch)
treea6af27bb6c71201b79c8cbe63494791239eb5448 /udev/udevadm-info.c
parent95d61c274566700ea2d39a4a048e2fa6ea2cc58f (diff)
udevadm: info - unify -V and --version
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index d30fc0031c..745b4fdb7b 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -228,7 +228,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
{ "device-id-of-file", required_argument, NULL, 'd' },
{ "export", no_argument, NULL, 'x' },
{ "export-prefix", required_argument, NULL, 'P' },
- { "version", no_argument, NULL, 1 }, /* -V outputs braindead format */
+ { "version", no_argument, NULL, 'V' },
{ "help", no_argument, NULL, 'h' },
{}
};
@@ -366,11 +366,8 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
case 'P':
export_prefix = optarg;
break;
- case 1:
- printf("%s\n", VERSION);
- goto exit;
case 'V':
- printf("udevinfo, version %s\n", VERSION);
+ printf("%s\n", VERSION);
goto exit;
case 'h':
printf("Usage: udevadm info OPTIONS\n"