]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Remove `static'.
authorJim Meyering <jim@meyering.net>
Sat, 16 Jan 1999 16:20:02 +0000 (16:20 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Jan 1999 16:20:02 +0000 (16:20 +0000)
Use function-style XARGMATCH.

src/touch.c

index 0fede518dc9364fba602502e909ab91e989332e9..9a366c274f50d369546eceb748caa5d4cbfdece7 100644 (file)
@@ -190,7 +190,7 @@ touch (char *file)
   return 0;
 }
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
@@ -285,12 +285,8 @@ main (int argc, char **argv)
          break;
 
        case CHAR_MAX + 1:      /* --time */
-         {
-           int mask;
-           XARGMATCH (&mask, "--time", optarg, time_args, time_masks,
-                      usage (1));
-           change_times |= mask;
-         }
+         change_times |= XARGMATCH ("--time", optarg,
+                                    time_args, time_masks);
          break;
 
        default: