Constify, staticize and add a missing include; add WARNS?=2.

Submitted by:	Mike Barcroft <mike@q9media.com>
MFC after:	2 weeks
This commit is contained in:
Dag-Erling Smørgrav 2001-06-24 12:38:28 +00:00
parent db3cc2d09f
commit 0afcb0871d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78700
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= chkgrp
WARNS?= 2
MAN= chkgrp.8
.include <bsd.prog.mk>

View File

@ -34,10 +34,11 @@ static const char rcsid[] =
#include <err.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
void
static void
usage(void)
{
fprintf(stderr, "usage: chkgrp [groupfile]\n");
@ -47,9 +48,10 @@ usage(void)
int
main(int argc, char *argv[])
{
unsigned int len;
int n = 0, i, k, e = 0;
char *gfn, *line, *f[4], *p;
unsigned int i, len;
int n = 0, k, e = 0;
char *line, *f[4], *p;
const char *gfn;
FILE *gf;
/* check arguments */