aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cut.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /coreutils/cut.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r--coreutils/cut.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 34ec3690c..d9f8161f3 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -3,7 +3,7 @@
3 * cut.c - minimalist version of cut 3 * cut.c - minimalist version of cut
4 * 4 *
5 * Copyright (C) 1999,2000,2001 by Lineo, inc. 5 * Copyright (C) 1999,2000,2001 by Lineo, inc.
6 * Written by Mark Whitley <markw@lineo.com>, <markw@codepoet.org> 6 * Written by Mark Whitley <markw@codepoet.org>
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
@@ -69,7 +69,7 @@ static int cmpfunc(const void *a, const void *b)
69 69
70/* 70/*
71 * parse_lists() - parses a list and puts values into startpos and endpos. 71 * parse_lists() - parses a list and puts values into startpos and endpos.
72 * valid list formats: N, N-, N-M, -M 72 * valid list formats: N, N-, N-M, -M
73 * more than one list can be seperated by commas 73 * more than one list can be seperated by commas
74 */ 74 */
75static void parse_lists(char *lists) 75static void parse_lists(char *lists)
@@ -96,7 +96,7 @@ static void parse_lists(char *lists)
96 s = strtoul(ntok, &junk, 10); 96 s = strtoul(ntok, &junk, 10);
97 if(*junk != '\0' || s < 0) 97 if(*junk != '\0' || s < 0)
98 bb_error_msg_and_die("invalid byte or field list"); 98 bb_error_msg_and_die("invalid byte or field list");
99 99
100 /* account for the fact that arrays are zero based, while the user 100 /* account for the fact that arrays are zero based, while the user
101 * expects the first char on the line to be char # 1 */ 101 * expects the first char on the line to be char # 1 */
102 if (s != 0) 102 if (s != 0)
@@ -125,7 +125,7 @@ static void parse_lists(char *lists)
125 /* if there's something left to tokenize, the user past an invalid list */ 125 /* if there's something left to tokenize, the user past an invalid list */
126 if (ltok) 126 if (ltok)
127 bb_error_msg_and_die("invalid byte or field list"); 127 bb_error_msg_and_die("invalid byte or field list");
128 128
129 /* add the new list */ 129 /* add the new list */
130 cut_lists = xrealloc(cut_lists, sizeof(struct cut_list) * (++nlists)); 130 cut_lists = xrealloc(cut_lists, sizeof(struct cut_list) * (++nlists));
131 cut_lists[nlists-1].startpos = s; 131 cut_lists[nlists-1].startpos = s;
@@ -227,7 +227,7 @@ static void cut_file_by_lines(const char *line, unsigned int linenum)
227{ 227{
228 static int c = 0; 228 static int c = 0;
229 static int l = -1; 229 static int l = -1;
230 230
231 /* I can't initialize this above cuz the "initializer isn't 231 /* I can't initialize this above cuz the "initializer isn't
232 * constant" *sigh* */ 232 * constant" *sigh* */
233 if (l == -1) 233 if (l == -1)