summaryrefslogtreecommitdiffstats
path: root/usr.bin/unexpand/unexpand.c
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/unexpand/unexpand.c
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/unexpand/unexpand.c')
-rw-r--r--usr.bin/unexpand/unexpand.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c
index a1c5659..0d6b80c 100644
--- a/usr.bin/unexpand/unexpand.c
+++ b/usr.bin/unexpand/unexpand.c
@@ -66,9 +66,7 @@ static void usage(void);
static void tabify(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch, failed;
char *filename;
@@ -110,14 +108,14 @@ main(argc, argv)
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: unexpand [-a] [-t tablist] [file ...]\n");
exit(1);
}
static void
-tabify()
+tabify(void)
{
int ch, dcol, doneline, limit, n, ocol;
@@ -199,8 +197,7 @@ tabify()
}
static void
-getstops(cp)
- const char *cp;
+getstops(const char *cp)
{
int i;
OpenPOWER on IntegriCloud