]> Dogcows Code - chaz/tar/commitdiff
(parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks Mike Frysinger <vapier@gentoo.org>...
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 5 Jan 2005 17:30:36 +0000 (17:30 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 5 Jan 2005 17:30:36 +0000 (17:30 +0000)
src/tar.c

index 74a177deea5753d8cb9ff5dd76f07827daf05f28..252bc67e3844cfb3b6f5f83af2be888b42c0845b 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -617,9 +617,9 @@ parse_opt(int key, char *arg, struct argp_state *state)
   
   switch (key)
     {
-      case 1:
+      case ARGP_KEY_ARG:
        /* File name or non-parsed option, because of ARGP_IN_ORDER */
-       name_add (optarg);
+       name_add (arg);
        args->input_files++;
        break;
 
This page took 0.024354 seconds and 4 git commands to generate.