standardize on "return foo;" rather than "return(foo);" or "return (foo);"

This commit is contained in:
Todd C. Miller
2011-01-24 15:15:18 -05:00
parent 3316ac8ebc
commit ae2f7638f5
68 changed files with 843 additions and 843 deletions

View File

@@ -48,18 +48,18 @@ sudo_goodpath(const char *path, struct stat *sbp)
/* Check for brain damage */
if (path == NULL || path[0] == '\0')
return(NULL);
return NULL;
if (stat(path, &sb))
return(NULL);
return NULL;
/* Make sure path describes an executable regular file. */
if (!S_ISREG(sb.st_mode) || !(sb.st_mode & 0000111)) {
errno = EACCES;
return(NULL);
return NULL;
}
if (sbp != NULL)
(void) memcpy(sbp, &sb, sizeof(struct stat));
return((char *)path);
return (char *)path;
}