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
PROG= tee
WARNS?= 2
.include <bsd.prog.mk>

View File

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

View File

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

View File

@ -68,7 +68,8 @@ static const char rcsid[] =
#define BOLD 020 /* Bold */
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_DIM, *ENTER_BOLD, *ENTER_REVERSE, *UNDER_CHAR, *EXIT_ATTRIBUTES;
@ -105,7 +106,7 @@ main(argc, argv)
char **argv;
{
int c;
char *termtype;
const char *termtype;
FILE *f;
char termcap[1024];
@ -117,7 +118,7 @@ main(argc, argv)
case 't':
case 'T': /* for nroff compatibility */
termtype = optarg;
termtype = optarg;
break;
case 'i':
iflag = 1;
@ -168,7 +169,7 @@ void
filter(f)
FILE *f;
{
register c;
int c;
while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
@ -278,8 +279,8 @@ filter(f)
void
flushln()
{
register lastmode;
register i;
int lastmode;
int i;
int hadmodes = 0;
lastmode = NORMAL;
@ -390,7 +391,7 @@ initbuf()
void
fwd()
{
register oldcol, oldmax;
int oldcol, oldmax;
oldcol = col;
oldmax = maxcol;

View File

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

View File

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

View File

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

View File

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