Warns cleanups. Add FreeBSD ID to Makefile.
This commit is contained in:
parent
4285ad09c9
commit
fae4fbf838
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87287
@ -1,5 +1,7 @@
|
|||||||
|
# $FreeBSD$
|
||||||
# @(#)Makefile 8.1 (Berkeley) 6/9/93
|
# @(#)Makefile 8.1 (Berkeley) 6/9/93
|
||||||
|
|
||||||
PROG= logname
|
PROG= logname
|
||||||
|
WARNS?= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -34,13 +34,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static const char copyright[] =
|
||||||
"@(#) Copyright (c) 1991, 1993, 1994\n\
|
"@(#) Copyright (c) 1991, 1993, 1994\n\
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
The Regents of the University of California. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94";
|
static const char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
@ -55,7 +55,7 @@ void usage __P((void));
|
|||||||
int
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char *argv[];
|
char *argv[] __unused;
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user