chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: make ++/-- usage consistent WRT spacing
[elogind.git]
/
src
/
basic
/
fileio.c
diff --git
a/src/basic/fileio.c
b/src/basic/fileio.c
index 3bb1d3e036dd3b10796ef99c3bb3a4fbf865b2aa..d17d7351bbee1578d1907594dad4f22e0bc451c5 100644
(file)
--- a/
src/basic/fileio.c
+++ b/
src/basic/fileio.c
@@
-352,7
+352,7
@@
static int parse_env_file_internal(
case KEY:
if (strchr(newline, c)) {
state = PRE_KEY;
case KEY:
if (strchr(newline, c)) {
state = PRE_KEY;
- line
++;
+ line++;
n_key = 0;
} else if (c == '=') {
state = PRE_VALUE;
n_key = 0;
} else if (c == '=') {
state = PRE_VALUE;
@@
-376,7
+376,7
@@
static int parse_env_file_internal(
case PRE_VALUE:
if (strchr(newline, c)) {
state = PRE_KEY;
case PRE_VALUE:
if (strchr(newline, c)) {
state = PRE_KEY;
- line
++;
+ line++;
key[n_key] = 0;
if (value)
key[n_key] = 0;
if (value)
@@
-416,7
+416,7
@@
static int parse_env_file_internal(
case VALUE:
if (strchr(newline, c)) {
state = PRE_KEY;
case VALUE:
if (strchr(newline, c)) {
state = PRE_KEY;
- line
++;
+ line++;
key[n_key] = 0;
key[n_key] = 0;
@@
-535,7
+535,7
@@
static int parse_env_file_internal(
state = COMMENT_ESCAPE;
else if (strchr(newline, c)) {
state = PRE_KEY;
state = COMMENT_ESCAPE;
else if (strchr(newline, c)) {
state = PRE_KEY;
- line
++;
+ line++;
}
break;
}
break;
@@
-910,7
+910,7
@@
int get_proc_field(const char *filename, const char *pattern, const char *termin
/* Back off one char if there's nothing but whitespace
and zeros */
if (!*t || isspace(*t))
/* Back off one char if there's nothing but whitespace
and zeros */
if (!*t || isspace(*t))
- t
--;
+ t--;
}
len = strcspn(t, terminator);
}
len = strcspn(t, terminator);