mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Assign the result of getopt() to an int rather than to a char (which is
possibly unsigned).
This commit is contained in:
parent
d6fcfb7ae1
commit
f901ebcfb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132660
@ -123,7 +123,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
DBG_FUNC("main")
|
||||
char *device, *special;
|
||||
char ch;
|
||||
int ch;
|
||||
size_t len;
|
||||
struct stat st;
|
||||
struct csum *dbg_csp;
|
||||
|
@ -117,12 +117,11 @@ main(argc, argv)
|
||||
register struct exportslist *exp;
|
||||
register struct grouplist *grp;
|
||||
register int rpcs = 0, mntvers = 1;
|
||||
char ch;
|
||||
const char *host;
|
||||
int estat;
|
||||
int ch, estat;
|
||||
|
||||
while ((ch = getopt(argc, argv, "ade3")) != -1)
|
||||
switch((char)ch) {
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
if (type == 0) {
|
||||
type = ALL;
|
||||
|
Loading…
Reference in New Issue
Block a user