Commit c29fc4ac authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix non-standard return codes from createtable.

parent 04b9edc1
...@@ -48,22 +48,22 @@ int main(int argc, char *argv[]) ...@@ -48,22 +48,22 @@ int main(int argc, char *argv[])
break; break;
case 'h': case 'h':
if ( !strncmp(cstring, "help", len) ) if ( !strncmp(cstring, "help", len) )
{ {
usage( ); usage( );
return( 0 ); return EXIT_SUCCESS;
} }
break; break;
case 'v': case 'v':
if ( !strncmp(cstring, "version", len) ) if ( !strncmp(cstring, "version", len) )
{ {
version(); version();
return (0); return EXIT_SUCCESS;
} }
break; break;
default: default:
usage(); usage();
fprintf(stderr, "illegal option %s\n", cstring); fprintf(stderr, "illegal option %s\n", cstring);
return (-1); return EXIT_FAILURE;
break; break;
} }
} }
...@@ -83,7 +83,7 @@ int main(int argc, char *argv[]) ...@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
{ {
usage(); usage();
fprintf(stderr, "missing filenames\n"); fprintf(stderr, "missing filenames\n");
return (-1); return EXIT_FAILURE;
} }
if ( debug ) if ( debug )
...@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) ...@@ -101,7 +101,7 @@ int main(int argc, char *argv[])
if ( tableID != CDI_UNDEFID ) if ( tableID != CDI_UNDEFID )
tableWriteC(ofile, tableID); tableWriteC(ofile, tableID);
return (0); return EXIT_SUCCESS;
} }
/* /*
* Local Variables: * Local Variables:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment