Warns cleanups.

This commit is contained in:
David Malone 2001-12-03 21:27:45 +00:00
parent 6e878749df
commit 45af1a4cbd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87298
12 changed files with 21 additions and 11 deletions

View File

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

View File

@ -94,7 +94,7 @@ static int getchr __P((void));
static double getdouble __P((void));
static int getint __P((int *));
static int getquad __P((quad_t *));
static char *getstr __P((void));
static const char *getstr __P((void));
static char *mklong __P((char *, int));
static void usage __P((void));
@ -109,7 +109,7 @@ main(argc, argv)
int argc;
char *argv[];
{
static char *skip1, *skip2;
static const char *skip1, *skip2;
int ch, end, fieldwidth, precision;
char convch, nextch, *format, *fmt, *start;
@ -217,7 +217,7 @@ next: for (start = fmt;; ++fmt) {
break;
}
case 's': {
char *p;
const char *p;
p = getstr();
PF(start, p);
@ -349,7 +349,7 @@ getchr()
return ((int)**gargv++);
}
static char *
static const char *
getstr()
{
if (!*gargv)
@ -357,7 +357,7 @@ getstr()
return (*gargv++);
}
static char *Number = "+-.0123456789";
static const char *Number = "+-.0123456789";
static int
getint(ip)
int *ip;

View File

@ -3,5 +3,6 @@
PROG= renice
MAN= renice.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -66,6 +66,7 @@ static void usage __P((void));
*/
int
main(argc, argv)
int argc;
char **argv;
{
int which = PRIO_PROCESS;

View File

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

View File

@ -67,7 +67,7 @@ main(int argc, char **argv)
char c;
int fd;
char *file = DEFAULT_FILE;
const char *file = DEFAULT_FILE;
int show_dpi = 0;
int show_width = 0;

View File

@ -4,5 +4,6 @@
PROG= size
MAN= size.1aout
BINDIR= /usr/libexec/aout
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -54,7 +54,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <string.h>
int show __P((int, char *));
int show __P((int, const char *));
static void usage __P((void));
int
@ -86,7 +86,7 @@ main(argc, argv)
int
show(count, name)
int count;
char *name;
const char *name;
{
static int first = 1;
struct exec head;

View File

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

View File

@ -67,7 +67,7 @@ static const char rcsid[] =
*/
#define STDIN_NAME "-"
int process __P((char *));
int process __P((const char *));
int
main(argc, argv)
@ -91,7 +91,7 @@ main(argc, argv)
int
process(file)
char *file;
const char *file;
{
register char *cp;
register int c;

View File

@ -3,6 +3,7 @@
PROG= strings
MAN= strings.1aout
WARNS?= 2
BINDIR= /usr/libexec/aout
.include <bsd.prog.mk>

View File

@ -84,7 +84,7 @@ main(argc, argv)
int exitcode, minlen;
short asdata, oflg, fflg;
u_char *bfr;
char *file, *p;
const char *file, *p;
(void) setlocale(LC_CTYPE, "");