diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-12-30 16:02:44 +0100 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-12-30 16:03:24 +0100 |
commit | 372745844b422a0898599cb4019e29dc9f909e6f (patch) | |
tree | 91ff1cc68455a5633c4c1b0927a73f6344760ce0 /src/rc/rc.c | |
parent | 191ea10f86d9399d67ab1a483a32167f70ee2bad (diff) |
Code style fixes
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r-- | src/rc/rc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 05c99faf..9ee3047a 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); |