tree-wide: make ++/-- usage consistent WRT spacing
Throughout the tree there's spurious use of spaces separating ++ and -- operators from their respective operands. Make ++ and -- operator consistent with the majority of existing uses; discard the spaces.
This commit is contained in:
+5
-5
@@ -352,7 +352,7 @@ static int parse_env_file_internal(
|
||||
case KEY:
|
||||
if (strchr(newline, c)) {
|
||||
state = PRE_KEY;
|
||||
line ++;
|
||||
line++;
|
||||
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;
|
||||
line ++;
|
||||
line++;
|
||||
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;
|
||||
line ++;
|
||||
line++;
|
||||
|
||||
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;
|
||||
line ++;
|
||||
line++;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -908,7 +908,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))
|
||||
t --;
|
||||
t--;
|
||||
}
|
||||
|
||||
len = strcspn(t, terminator);
|
||||
|
||||
Reference in New Issue
Block a user