improved readability.
if (dsize != 0)
*dst = '\0'; /* NUL-terminate dst */
while (*src++)
- ;
+ continue;
}
return(src - osrc - 1); /* count does not include NUL */
const char *cp;
for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
- ;
+ continue;
return (size_t)(cp - str);
}
debug_return_bool(true);
}
for (fac = facilities; fac->name && strcmp(val, fac->name); fac++)
- ;
+ continue;
if (fac->name == NULL)
debug_return_bool(false); /* not found */
debug_decl(logfac2str, SUDOERS_DEBUG_DEFAULTS)
for (fac = facilities; fac->name && fac->num != n; fac++)
- ;
+ continue;
debug_return_const_str(fac->name);
}
debug_return_bool(false);
for (pri = priorities; pri->name && strcmp(val, pri->name); pri++)
- ;
+ continue;
if (pri->name == NULL)
debug_return_bool(false); /* not found */
debug_decl(logpri2str, SUDOERS_DEBUG_DEFAULTS)
for (pri = priorities; pri->name && pri->num != n; pri++)
- ;
+ continue;
debug_return_const_str(pri->name);
}
* just ignores the '=' and anything after it.
*/
for (cp = var; *cp && *cp != '='; cp++)
- ;
+ continue;
esize = (size_t)(cp - var) + 2;
if (val) {
esize += strlen(val); /* glibc treats a NULL val as "" */
/* Must be of the form name=["']value['"] */
for (val = var; *val != '\0' && *val != '='; val++)
- ;
+ continue;
if (var == val || *val != '=')
continue;
var_len = (size_t)(val - var);
/* Advance p and eliminate leading whitespace */
for (p = tmp; *p == ' '; p++)
- ;
+ continue;
} else {
mysyslog(pri, fmt, user_name, p);
p += len;
do {
/* Remove leading blanks, must have a non-empty string. */
for (start = end; isblank((unsigned char)*start); start++)
- ;
+ continue;
if (*start == '\0')
break;
/* Find the end and print it. */
for (end = start; *end && !isblank((unsigned char)*end); end++)
- ;
+ continue;
savech = *end;
*end = '\0';
print_string_json(fp, start);
* just ignores the '=' and anything after it.
*/
for (src = var; *src != '\0' && *src != '='; src++)
- ;
+ continue;
esize = (size_t)(src - var) + 2;
if (val) {
esize += strlen(val); /* glibc treats a NULL val as "" */
/* Wait for parent to grant us the tty if we are foreground. */
if (foreground && !ISSET(details->flags, CD_EXEC_BG)) {
while (tcgetpgrp(io_fds[SFD_SLAVE]) != self)
- ; /* spin */
+ continue; /* spin */
}
/* We have guaranteed that the slave fd is > 2 */