diff lib/long-options.c @ 12421:e8d2c6fc33ad

Use spaces for indentation, not tabs.
author Bruno Haible <bruno@clisp.org>
date Thu, 10 Dec 2009 20:28:30 +0100
parents bbbbbf4cd1c5
children b5e42ef33b49
line wrap: on
line diff
--- a/lib/long-options.c	Thu Dec 10 19:15:51 2009 +0100
+++ b/lib/long-options.c	Thu Dec 10 20:28:30 2009 +0100
@@ -42,12 +42,12 @@
 
 void
 parse_long_options (int argc,
-		    char **argv,
-		    const char *command_name,
-		    const char *package,
-		    const char *version,
-		    void (*usage_func) (int),
-		    /* const char *author1, ...*/ ...)
+                    char **argv,
+                    const char *command_name,
+                    const char *package,
+                    const char *version,
+                    void (*usage_func) (int),
+                    /* const char *author1, ...*/ ...)
 {
   int c;
   int saved_opterr;
@@ -61,22 +61,22 @@
       && (c = getopt_long (argc, argv, "+", long_options, NULL)) != -1)
     {
       switch (c)
-	{
-	case 'h':
-	  (*usage_func) (EXIT_SUCCESS);
+        {
+        case 'h':
+          (*usage_func) (EXIT_SUCCESS);
 
-	case 'v':
-	  {
-	    va_list authors;
-	    va_start (authors, usage_func);
-	    version_etc_va (stdout, command_name, package, version, authors);
-	    exit (0);
-	  }
+        case 'v':
+          {
+            va_list authors;
+            va_start (authors, usage_func);
+            version_etc_va (stdout, command_name, package, version, authors);
+            exit (0);
+          }
 
-	default:
-	  /* Don't process any other long-named options.  */
-	  break;
-	}
+        default:
+          /* Don't process any other long-named options.  */
+          break;
+        }
     }
 
   /* Restore previous value.  */