diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /findutils/grep.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 241099c79..229508cda 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Mini grep implementation for busybox using libc regex. | 2 | * Mini grep implementation for busybox using libc regex. |
3 | * | 3 | * |
4 | * Copyright (C) 1999,2000,2001 by Lineo, inc. and Mark Whitley | 4 | * Copyright (C) 1999,2000,2001 by Lineo, inc. and Mark Whitley |
5 | * Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org> | 5 | * Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -116,7 +116,7 @@ static int grep_file(FILE *file) | |||
116 | int print_n_lines_after = 0; | 116 | int print_n_lines_after = 0; |
117 | int curpos = 0; /* track where we are in the circular 'before' buffer */ | 117 | int curpos = 0; /* track where we are in the circular 'before' buffer */ |
118 | int idx = 0; /* used for iteration through the circular buffer */ | 118 | int idx = 0; /* used for iteration through the circular buffer */ |
119 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ | 119 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ |
120 | 120 | ||
121 | while ((line = bb_get_chomped_line_from_file(file)) != NULL) { | 121 | while ((line = bb_get_chomped_line_from_file(file)) != NULL) { |
122 | llist_t *pattern_ptr = pattern_head; | 122 | llist_t *pattern_ptr = pattern_head; |
@@ -190,7 +190,7 @@ static int grep_file(FILE *file) | |||
190 | 190 | ||
191 | /* make a note that we need to print 'after' lines */ | 191 | /* make a note that we need to print 'after' lines */ |
192 | print_n_lines_after = lines_after; | 192 | print_n_lines_after = lines_after; |
193 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ | 193 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ |
194 | print_line(line, linenum, ':'); | 194 | print_line(line, linenum, ':'); |
195 | } | 195 | } |
196 | } | 196 | } |
@@ -209,7 +209,7 @@ static int grep_file(FILE *file) | |||
209 | print_line(line, linenum, '-'); | 209 | print_line(line, linenum, '-'); |
210 | print_n_lines_after--; | 210 | print_n_lines_after--; |
211 | } | 211 | } |
212 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ | 212 | #endif /* CONFIG_FEATURE_GREP_CONTEXT */ |
213 | free(line); | 213 | free(line); |
214 | } | 214 | } |
215 | 215 | ||