1 |
commit: 372745844b422a0898599cb4019e29dc9f909e6f |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 15:02:44 2011 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 15:03:24 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=37274584 |
7 |
|
8 |
Code style fixes |
9 |
|
10 |
--- |
11 |
src/rc/rc.c | 8 ++++---- |
12 |
1 files changed, 4 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/src/rc/rc.c b/src/rc/rc.c |
15 |
index 05c99fa..9ee3047 100644 |
16 |
--- a/src/rc/rc.c |
17 |
+++ b/src/rc/rc.c |
18 |
@@ -188,11 +188,11 @@ proc_getent(const char *ent) |
19 |
if (rc_getline(&proc, &i, fp) == -1 || proc == NULL) |
20 |
eerror("rc_getline: %s", strerror(errno)); |
21 |
|
22 |
- if(proc != NULL) { |
23 |
+ if (proc != NULL) { |
24 |
len = strlen(ent); |
25 |
|
26 |
- while((p = strsep(&proc, " "))) { |
27 |
- if(strncmp(ent, p, len) == 0 && (p[len] == '\0' || p[len] == ' ' || p[len] == '=')) { |
28 |
+ while ((p = strsep(&proc, " "))) { |
29 |
+ if (strncmp(ent, p, len) == 0 && (p[len] == '\0' || p[len] == ' ' || p[len] == '=')) { |
30 |
p += len; |
31 |
|
32 |
if (*p == '=') |
33 |
@@ -203,7 +203,7 @@ proc_getent(const char *ent) |
34 |
} |
35 |
} |
36 |
|
37 |
- if(!value) |
38 |
+ if (!value) |
39 |
errno = ENOENT; |
40 |
|
41 |
fclose(fp); |