diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-09-15 10:19:57 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-09-15 10:19:57 +0000 |
| commit | 1ae21ad605d7d5db868affffb264d30118182b72 (patch) | |
| tree | 464378aa9a30811df9564e645df1e3a4212f6efb /usr.bin/printf | |
| parent | d253a26a86fb4da73f5914a545a731a1c8235eb6 (diff) | |
Notes
Diffstat (limited to 'usr.bin/printf')
| -rw-r--r-- | usr.bin/printf/printf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 5ca15c89accf..25acd157bacb 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -33,14 +33,14 @@ #if !defined(BUILTIN) && !defined(SHELL) #ifndef lint -static char copyright[] = +static char const copyright[] = "@(#) Copyright (c) 1989, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #endif #ifndef lint -static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; +static char const sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; #endif /* not lint */ #include <sys/types.h> @@ -51,6 +51,7 @@ static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #ifdef SHELL #define main printfcmd @@ -100,7 +101,7 @@ main(argc, argv) int ch, end, fieldwidth, precision; char convch, nextch, *format, *fmt, *start; - while ((ch = getopt(argc, argv, "")) != -1) + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { case '?': default: |
