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:
parent
db3cc2d09f
commit
0afcb0871d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78700
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= chkgrp
|
||||
WARNS?= 2
|
||||
MAN= chkgrp.8
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user