mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-03 10:55:15 +00:00
stinit: mark usage() as non-returning
So that we don't have to fake it's non-returnness.
This commit is contained in:
3
stinit.c
3
stinit.c
@@ -89,6 +89,8 @@ static char *tape_name_bases[] = { "st", "nst", "rmt", "nrmt", "tape", NULL };
|
||||
/* The list of standard definition files being searched */
|
||||
static char *std_databases[] = { "/etc/stinit.def", NULL };
|
||||
|
||||
static char usage(int retval) __attribute__((noreturn));
|
||||
|
||||
static FILE *open_database(char *base)
|
||||
{
|
||||
int i;
|
||||
@@ -901,7 +903,6 @@ int main(int argc, char **argv)
|
||||
for (; argn < argc; argn++) {
|
||||
if (*argv[argn] == '-') {
|
||||
usage(1);
|
||||
return 1; /* Never executed but makes gcc happy */
|
||||
} else if (isdigit(*argv[argn])) {
|
||||
tapeno = strtol(argv[argn], &convp, 0);
|
||||
if (*argv[argn] != '\0' && *convp != '\0') {
|
||||
|
||||
Reference in New Issue
Block a user