summaryrefslogtreecommitdiffstats
path: root/usr.bin/expand
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
commitb4339b74aded4c38ebcfe3a2a9b37b900abb8874 (patch)
treefb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/expand
parent228b93ce829543fee06561687a63c17a7e821dfd (diff)
downloadFreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.zip
FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.tar.gz
ANSIify function definitions.
Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
Diffstat (limited to 'usr.bin/expand')
-rw-r--r--usr.bin/expand/expand.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c
index 70e1247..927c3ab 100644
--- a/usr.bin/expand/expand.c
+++ b/usr.bin/expand/expand.c
@@ -62,12 +62,10 @@ static void getstops(char *);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
- register int c, column;
- register int n;
+ int c, column;
+ int n;
int rval;
setlocale(LC_CTYPE, "");
@@ -159,10 +157,9 @@ main(argc, argv)
}
static void
-getstops(cp)
- register char *cp;
+getstops(char *cp)
{
- register int i;
+ int i;
nstops = 0;
for (;;) {
@@ -185,7 +182,7 @@ getstops(cp)
}
static void
-usage()
+usage(void)
{
(void)fprintf (stderr, "usage: expand [-t tablist] [file ...]\n");
exit(1);
OpenPOWER on IntegriCloud