From 372745844b422a0898599cb4019e29dc9f909e6f Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Fri, 30 Dec 2011 16:02:44 +0100 Subject: Code style fixes --- src/rc/rc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rc/rc.c') diff --git a/src/rc/rc.c b/src/rc/rc.c index 05c99fa..9ee3047 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -188,11 +188,11 @@ proc_getent(const char *ent) if (rc_getline(&proc, &i, fp) == -1 || proc == NULL) eerror("rc_getline: %s", strerror(errno)); - if(proc != NULL) { + if (proc != NULL) { len = strlen(ent); - while((p = strsep(&proc, " "))) { - if(strncmp(ent, p, len) == 0 && (p[len] == '\0' || p[len] == ' ' || p[len] == '=')) { + while ((p = strsep(&proc, " "))) { + if (strncmp(ent, p, len) == 0 && (p[len] == '\0' || p[len] == ' ' || p[len] == '=')) { p += len; if (*p == '=') @@ -203,7 +203,7 @@ proc_getent(const char *ent) } } - if(!value) + if (!value) errno = ENOENT; fclose(fp); -- cgit v1.2.3