Explorar o código

Remove unnecessary exit() calls after usage()

usage() does not return, as it calls exit().
Richard Laager %!s(int64=13) %!d(string=hai) anos
pai
achega
ecb5116e69
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      src/docsis.c

+ 0 - 3
src/docsis.c

@@ -176,13 +176,11 @@ main (int argc, char *argv[])
 
   if (argc < 2 ) {
 	usage();
-	exit (10);
   }
 
   if (!strcmp (argv[1], "-m") ){ /* variable number of args, encoding multiple files */
 	if (argc < 5 ) {
 		usage();
-		exit (10);
 	}
     	extension_string = argv[argc-1];
         if (!strcmp ( argv[2], "-p")) {
@@ -219,7 +217,6 @@ main (int argc, char *argv[])
       		;;
     	default:
 		usage ();
-      		exit (10);
     }
   }