standardize on "return foo;" rather than "return(foo);" or "return (foo);"
This commit is contained in:
@@ -74,13 +74,13 @@ find_path(char *infile, char **outfile, struct stat *sbp, char *path,
|
||||
strlcpy(command, infile, sizeof(command)); /* paranoia */
|
||||
if (sudo_goodpath(command, sbp)) {
|
||||
*outfile = command;
|
||||
return(FOUND);
|
||||
return FOUND;
|
||||
} else
|
||||
return(NOT_FOUND);
|
||||
return NOT_FOUND;
|
||||
}
|
||||
|
||||
if (path == NULL)
|
||||
return(NOT_FOUND);
|
||||
return NOT_FOUND;
|
||||
path = estrdup(path);
|
||||
origpath = path;
|
||||
|
||||
@@ -121,12 +121,12 @@ find_path(char *infile, char **outfile, struct stat *sbp, char *path,
|
||||
errorx(1, "%s: File name too long", infile);
|
||||
result = sudo_goodpath(command, sbp);
|
||||
if (result && ignore_dot)
|
||||
return(NOT_FOUND_DOT);
|
||||
return NOT_FOUND_DOT;
|
||||
}
|
||||
|
||||
if (result) {
|
||||
*outfile = result;
|
||||
return(FOUND);
|
||||
return FOUND;
|
||||
} else
|
||||
return(NOT_FOUND);
|
||||
return NOT_FOUND;
|
||||
}
|
||||
|
Reference in New Issue
Block a user