summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Whitley2001-04-17 17:30:44 +0000
committerMark Whitley2001-04-17 17:30:44 +0000
commit59a86cad676ab49bd4ad956fc6e78025527625ec (patch)
tree3093554ce4fa6be5a3c92adf47f2591728e573c7
parent5d81768cf13a7ecfd5a31e778242a79a0de00d30 (diff)
downloadbusybox-59a86cad676ab49bd4ad956fc6e78025527625ec.zip
busybox-59a86cad676ab49bd4ad956fc6e78025527625ec.tar.gz
The tiniest of bracket-placement fixes.
-rw-r--r--findutils/grep.c7
-rw-r--r--grep.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index b519adf..12bcead 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -112,8 +112,7 @@ static void grep_file(FILE *file)
/* if we were told to print 'before' lines and there is at least
* one line in the circular buffer, print them */
- if (lines_before && before_buf[prevpos] != NULL)
- {
+ if (lines_before && before_buf[prevpos] != NULL) {
int first_buf_entry_line_num = linenum - lines_before;
/* advance to the first entry in the circular buffer, and
@@ -133,7 +132,6 @@ static void grep_file(FILE *file)
idx = (idx + 1) % lines_before;
first_buf_entry_line_num++;
}
-
}
/* make a note that we need to print 'after' lines */
@@ -145,8 +143,7 @@ static void grep_file(FILE *file)
#ifdef BB_FEATURE_GREP_CONTEXT
else { /* no match */
/* Add the line to the circular 'before' buffer */
- if(lines_before)
- {
+ if(lines_before) {
if(before_buf[curpos])
free(before_buf[curpos]);
before_buf[curpos] = strdup(line);
diff --git a/grep.c b/grep.c
index b519adf..12bcead 100644
--- a/grep.c
+++ b/grep.c
@@ -112,8 +112,7 @@ static void grep_file(FILE *file)
/* if we were told to print 'before' lines and there is at least
* one line in the circular buffer, print them */
- if (lines_before && before_buf[prevpos] != NULL)
- {
+ if (lines_before && before_buf[prevpos] != NULL) {
int first_buf_entry_line_num = linenum - lines_before;
/* advance to the first entry in the circular buffer, and
@@ -133,7 +132,6 @@ static void grep_file(FILE *file)
idx = (idx + 1) % lines_before;
first_buf_entry_line_num++;
}
-
}
/* make a note that we need to print 'after' lines */
@@ -145,8 +143,7 @@ static void grep_file(FILE *file)
#ifdef BB_FEATURE_GREP_CONTEXT
else { /* no match */
/* Add the line to the circular 'before' buffer */
- if(lines_before)
- {
+ if(lines_before) {
if(before_buf[curpos])
free(before_buf[curpos]);
before_buf[curpos] = strdup(line);