Style fix: "while (" not "while(".
This commit is contained in:
parent
b1fcf4ce9c
commit
0c93f4df32
@ -61,7 +61,7 @@ rc_getline(char **line, size_t *len, FILE *fp)
|
|||||||
char *p;
|
char *p;
|
||||||
size_t last = 0;
|
size_t last = 0;
|
||||||
|
|
||||||
while(!feof(fp)) {
|
while (!feof(fp)) {
|
||||||
if (*line == NULL || last != 0) {
|
if (*line == NULL || last != 0) {
|
||||||
*len += BUFSIZ;
|
*len += BUFSIZ;
|
||||||
*line = xrealloc(*line, *len);
|
*line = xrealloc(*line, *len);
|
||||||
|
@ -209,7 +209,7 @@ rc_sys_v2(void)
|
|||||||
if (systype) {
|
if (systype) {
|
||||||
char* s = systype;
|
char* s = systype;
|
||||||
// Convert to uppercase
|
// Convert to uppercase
|
||||||
while(s && *s) {
|
while (s && *s) {
|
||||||
if (islower((unsigned char)*s))
|
if (islower((unsigned char)*s))
|
||||||
*s = toupper((unsigned char)*s);
|
*s = toupper((unsigned char)*s);
|
||||||
s++;
|
s++;
|
||||||
|
@ -1210,7 +1210,7 @@ start_stop_daemon(int argc, char **argv)
|
|||||||
/* Clean the environment of any RC_ variables */
|
/* Clean the environment of any RC_ variables */
|
||||||
env_list = rc_stringlist_new();
|
env_list = rc_stringlist_new();
|
||||||
i = 0;
|
i = 0;
|
||||||
while(environ[i])
|
while (environ[i])
|
||||||
rc_stringlist_add(env_list, environ[i++]);
|
rc_stringlist_add(env_list, environ[i++]);
|
||||||
|
|
||||||
#ifdef HAVE_PAM
|
#ifdef HAVE_PAM
|
||||||
|
Loading…
Reference in New Issue
Block a user