summaryrefslogtreecommitdiff
path: root/cifs.idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'cifs.idmap.c')
-rw-r--r--cifs.idmap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cifs.idmap.c b/cifs.idmap.c
index bfef58b..ea22300 100644
--- a/cifs.idmap.c
+++ b/cifs.idmap.c
@@ -44,6 +44,11 @@
static const char *prog = "cifs.idmap";
+static const struct option long_options[] = {
+ {"version", 0, NULL, 'v'},
+ {NULL, 0, NULL, 0}
+};
+
static void usage(void)
{
fprintf(stderr, "Usage: %s key_serial\n", prog);
@@ -189,7 +194,7 @@ int main(const int argc, char *const argv[])
openlog(prog, 0, LOG_DAEMON);
- while ((c = getopt_long(argc, argv, "v", NULL, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "v", long_options, NULL)) != -1) {
switch (c) {
case 'v':
printf("version: %s\n", VERSION);