Warns cleanups. Add FreeBSD ID to Makefile.

This commit is contained in:
David Malone 2001-12-03 21:37:35 +00:00
parent 0fce1f20c8
commit c83caf7b8d
8 changed files with 24 additions and 14 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= tee PROG= tee
WARNS?= 2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -58,11 +58,11 @@ static const char rcsid[] =
typedef struct _list { typedef struct _list {
struct _list *next; struct _list *next;
int fd; int fd;
char *name; const char *name;
} LIST; } LIST;
LIST *head; LIST *head;
void add __P((int, char *)); void add __P((int, const char *));
static void usage __P((void)); static void usage __P((void));
int int
@ -134,7 +134,7 @@ usage()
void void
add(fd, name) add(fd, name)
int fd; int fd;
char *name; const char *name;
{ {
LIST *p; LIST *p;

View File

@ -1,6 +1,8 @@
# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= ul PROG= ul
WARNS?= 2
DPADD= ${LIBTERMCAP} DPADD= ${LIBTERMCAP}
LDADD= -ltermcap LDADD= -ltermcap

View File

@ -68,7 +68,8 @@ static const char rcsid[] =
#define BOLD 020 /* Bold */ #define BOLD 020 /* Bold */
int must_use_uc, must_overstrike; int must_use_uc, must_overstrike;
char *CURS_UP, *CURS_RIGHT, *CURS_LEFT, const char
*CURS_UP, *CURS_RIGHT, *CURS_LEFT,
*ENTER_STANDOUT, *EXIT_STANDOUT, *ENTER_UNDERLINE, *EXIT_UNDERLINE, *ENTER_STANDOUT, *EXIT_STANDOUT, *ENTER_UNDERLINE, *EXIT_UNDERLINE,
*ENTER_DIM, *ENTER_BOLD, *ENTER_REVERSE, *UNDER_CHAR, *EXIT_ATTRIBUTES; *ENTER_DIM, *ENTER_BOLD, *ENTER_REVERSE, *UNDER_CHAR, *EXIT_ATTRIBUTES;
@ -105,7 +106,7 @@ main(argc, argv)
char **argv; char **argv;
{ {
int c; int c;
char *termtype; const char *termtype;
FILE *f; FILE *f;
char termcap[1024]; char termcap[1024];
@ -168,7 +169,7 @@ void
filter(f) filter(f)
FILE *f; FILE *f;
{ {
register c; int c;
while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) { while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
@ -278,8 +279,8 @@ filter(f)
void void
flushln() flushln()
{ {
register lastmode; int lastmode;
register i; int i;
int hadmodes = 0; int hadmodes = 0;
lastmode = NORMAL; lastmode = NORMAL;
@ -390,7 +391,7 @@ initbuf()
void void
fwd() fwd()
{ {
register oldcol, oldmax; int oldcol, oldmax;
oldcol = col; oldcol = col;
oldmax = maxcol; oldmax = maxcol;

View File

@ -1,5 +1,7 @@
# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= uniq PROG= uniq
WARNS?= 2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -62,7 +62,7 @@ static const char rcsid[] =
int cflag, dflag, uflag; int cflag, dflag, uflag;
int numchars, numfields, repeats; int numchars, numfields, repeats;
FILE *file __P((char *, char *)); FILE *file __P((const char *, const char *));
void show __P((FILE *, char *)); void show __P((FILE *, char *));
char *skip __P((char *)); char *skip __P((char *));
void obsolete __P((char *[])); void obsolete __P((char *[]));
@ -216,7 +216,7 @@ skip(str)
FILE * FILE *
file(name, mode) file(name, mode)
char *name, *mode; const char *name, *mode;
{ {
FILE *fp; FILE *fp;

View File

@ -1,5 +1,7 @@
# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= unvis PROG= unvis
WARNS?= 2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -51,11 +51,12 @@ static const char rcsid[] =
#include <unistd.h> #include <unistd.h>
#include <vis.h> #include <vis.h>
void process __P((FILE *, char *)); void process __P((FILE *, const char *));
static void usage __P((void)); static void usage __P((void));
int int
main(argc, argv) main(argc, argv)
int argc;
char *argv[]; char *argv[];
{ {
FILE *fp; FILE *fp;
@ -93,7 +94,7 @@ usage()
void void
process(fp, filename) process(fp, filename)
FILE *fp; FILE *fp;
char *filename; const char *filename;
{ {
register int offset = 0, c, ret; register int offset = 0, c, ret;
int state = 0; int state = 0;