From 0c93f4df3237a1ef5be0580386d4a4c68e3d8a51 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 17 Jan 2011 08:42:28 +0000 Subject: Style fix: "while (" not "while(". --- src/librc/librc-misc.c | 2 +- src/librc/librc.c | 2 +- src/rc/start-stop-daemon.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 97cec382..f83745f2 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -61,7 +61,7 @@ rc_getline(char **line, size_t *len, FILE *fp) char *p; size_t last = 0; - while(!feof(fp)) { + while (!feof(fp)) { if (*line == NULL || last != 0) { *len += BUFSIZ; *line = xrealloc(*line, *len); diff --git a/src/librc/librc.c b/src/librc/librc.c index a5b0bbdb..7062d16a 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -209,7 +209,7 @@ rc_sys_v2(void) if (systype) { char* s = systype; // Convert to uppercase - while(s && *s) { + while (s && *s) { if (islower((unsigned char)*s)) *s = toupper((unsigned char)*s); s++; diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 459bcf15..4790060d 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -1210,7 +1210,7 @@ start_stop_daemon(int argc, char **argv) /* Clean the environment of any RC_ variables */ env_list = rc_stringlist_new(); i = 0; - while(environ[i]) + while (environ[i]) rc_stringlist_add(env_list, environ[i++]); #ifdef HAVE_PAM -- cgit v1.2.3