kopia lustrzana https://gitlab.com/sane-project/backends
scanimage: Fix misleading fall through annotation
The `scanimage_exit()` call exits the program.merge-requests/128/head
rodzic
9344a957ed
commit
e42e3bc849
|
@ -2260,15 +2260,15 @@ main (int argc, char **argv)
|
||||||
if (defdevname)
|
if (defdevname)
|
||||||
printf ("default device is `%s'\n", defdevname);
|
printf ("default device is `%s'\n", defdevname);
|
||||||
scanimage_exit (0);
|
scanimage_exit (0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// fall through
|
|
||||||
case 'V':
|
case 'V':
|
||||||
printf ("scanimage (%s) %s; backend version %d.%d.%d\n", PACKAGE,
|
printf ("scanimage (%s) %s; backend version %d.%d.%d\n", PACKAGE,
|
||||||
VERSION, SANE_VERSION_MAJOR (version_code),
|
VERSION, SANE_VERSION_MAJOR (version_code),
|
||||||
SANE_VERSION_MINOR (version_code),
|
SANE_VERSION_MINOR (version_code),
|
||||||
SANE_VERSION_BUILD (version_code));
|
SANE_VERSION_BUILD (version_code));
|
||||||
scanimage_exit (0);
|
scanimage_exit (0);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break; /* ignore device specific options for now */
|
break; /* ignore device specific options for now */
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue