aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cut.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-20 09:16:00 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-20 09:16:00 +0000
commitc9e702492431593a22be3c3e5ab57643d478f77d (patch)
treeda652c44e21c8f54c092b1152fd3850f9d09ce4d /coreutils/cut.c
parent0f08e53535a7a1c0d4f7699f2e4224a255921559 (diff)
downloadbusybox-w32-c9e702492431593a22be3c3e5ab57643d478f77d.tar.gz
busybox-w32-c9e702492431593a22be3c3e5ab57643d478f77d.tar.bz2
busybox-w32-c9e702492431593a22be3c3e5ab57643d478f77d.zip
Add prototype update missing from last_patch89. Fix screwy
formatting in cut.
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r--coreutils/cut.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 8ae762fb3..34ec3690c 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -1,3 +1,4 @@
1/* vi: set sw=8 ts=8: */
1/* 2/*
2 * cut.c - minimalist version of cut 3 * cut.c - minimalist version of cut
3 * 4 *
@@ -300,12 +301,12 @@ extern int cut_main(int argc, char **argv)
300 if(part == 0) 301 if(part == 0)
301 bb_error_msg_and_die("you must specify a list of bytes, characters, or fields"); 302 bb_error_msg_and_die("you must specify a list of bytes, characters, or fields");
302 if(opt & 0x80000000UL) 303 if(opt & 0x80000000UL)
303 bb_error_msg_and_die("only one type of list may be specified"); 304 bb_error_msg_and_die("only one type of list may be specified");
304 parse_lists(sopt); 305 parse_lists(sopt);
305 if((opt & (OPT_DELIM_FLGS))) { 306 if((opt & (OPT_DELIM_FLGS))) {
306 if (strlen(sdopt) > 1) { 307 if (strlen(sdopt) > 1) {
307 bb_error_msg_and_die("the delimiter must be a single character"); 308 bb_error_msg_and_die("the delimiter must be a single character");
308 } 309 }
309 delim = sdopt[0]; 310 delim = sdopt[0];
310 } 311 }
311 supress_non_delimited_lines = opt & OPT_SUPRESS_FLGS; 312 supress_non_delimited_lines = opt & OPT_SUPRESS_FLGS;