mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
standardize on "return foo;" rather than "return(foo);" or "return (foo);"
This commit is contained in:
@@ -53,7 +53,7 @@ get_timestr(time_t tstamp, int log_year)
|
||||
/* strftime() does not guarantee to NUL-terminate so we must check. */
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
if (strftime(buf, sizeof(buf), s, timeptr) && buf[sizeof(buf) - 1] == '\0')
|
||||
return(buf);
|
||||
return buf;
|
||||
|
||||
#endif /* HAVE_STRFTIME */
|
||||
|
||||
@@ -63,5 +63,5 @@ get_timestr(time_t tstamp, int log_year)
|
||||
else
|
||||
s[15] = '\0'; /* don't care about year */
|
||||
|
||||
return(s);
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user