summaryrefslogtreecommitdiffstats
path: root/usr.bin/split/split.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-15 11:03:28 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-15 11:03:28 +0000
commitc492727786902abdde5e237dbc08484f2e0c903e (patch)
treeef13fcbe524500294c07b61bf411c574a2b53011 /usr.bin/split/split.c
parentb09484b4f39ba6a9ad682e1e5b2ce0c5abf33916 (diff)
downloadFreeBSD-src-c492727786902abdde5e237dbc08484f2e0c903e.zip
FreeBSD-src-c492727786902abdde5e237dbc08484f2e0c903e.tar.gz
Remove <sys/types> where we use <sys/param> already.
protoize.
Diffstat (limited to 'usr.bin/split/split.c')
-rw-r--r--usr.bin/split/split.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index 00ea671..e0b00f6 100644
--- a/usr.bin/split/split.c
+++ b/usr.bin/split/split.c
@@ -45,7 +45,6 @@ static const char sccsid[] = "@(#)split.c 8.2 (Berkeley) 4/16/94";
#endif
#include <sys/param.h>
-#include <sys/types.h>
#include <ctype.h>
#include <err.h>
@@ -75,9 +74,7 @@ void split2(void);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char **argv)
{
int ch;
char *ep, *p;
@@ -182,7 +179,7 @@ main(argc, argv)
* Split the input by bytes.
*/
void
-split1()
+split1(void)
{
size_t bcnt;
char *C;
@@ -230,7 +227,7 @@ split1()
* Split the input by lines.
*/
void
-split2()
+split2(void)
{
long lcnt = 0;
FILE *infp;
@@ -282,7 +279,7 @@ writeit:
* Open a new output file.
*/
void
-newfile()
+newfile(void)
{
long i, maxfiles, tfnum;
static long fnum;
@@ -333,7 +330,7 @@ newfile()
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: split [-a sufflen] [-b byte_count] [-l line_count] [-p pattern]\n");
OpenPOWER on IntegriCloud