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

Fix non-standard return codes from createtable.

parent 04b9edc1
......@@ -50,20 +50,20 @@ int main(int argc, char *argv[])
if ( !strncmp(cstring, "help", len) )
{
usage( );
return( 0 );
return EXIT_SUCCESS;
}
break;
case 'v':
if ( !strncmp(cstring, "version", len) )
{
version();
return (0);
return EXIT_SUCCESS;
}
break;
default:
usage();
fprintf(stderr, "illegal option %s\n", cstring);
return (-1);
return EXIT_FAILURE;
break;
}
}
......@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
{
usage();
fprintf(stderr, "missing filenames\n");
return (-1);
return EXIT_FAILURE;
}
if ( debug )
......@@ -101,7 +101,7 @@ int main(int argc, char *argv[])
if ( tableID != CDI_UNDEFID )
tableWriteC(ofile, tableID);
return (0);
return EXIT_SUCCESS;
}
/*
* 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