WARNS=2 fixes, use __FBSDID().
This commit is contained in:
parent
49601c4327
commit
043c9b9b34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87696
@ -31,15 +31,19 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#include <sys/cdefs.h>
|
||||||
static char copyright[] =
|
|
||||||
"@(#) Copyright (c) 1993\n\
|
__FBSDID("$FreeBSD$");
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
|
||||||
#endif /* not lint */
|
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char sccsid[] = "@(#)uname.c 8.2 (Berkeley) 5/4/95";
|
static const char copyright[] =
|
||||||
#endif /* not lint */
|
"@(#) Copyright (c) 1993\n\
|
||||||
|
The Regents of the University of California. All rights reserved.\n";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef lint
|
||||||
|
static const char sccsid[] = "@(#)uname.c 8.2 (Berkeley) 5/4/95";
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
@ -64,7 +68,8 @@ main(argc, argv)
|
|||||||
u_int flags;
|
u_int flags;
|
||||||
int ch, mib[2];
|
int ch, mib[2];
|
||||||
size_t len, tlen;
|
size_t len, tlen;
|
||||||
char *p, *prefix, buf[1024];
|
char *p, buf[1024];
|
||||||
|
const char *prefix;
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
while ((ch = getopt(argc, argv, "amnprsv")) != -1)
|
while ((ch = getopt(argc, argv, "amnprsv")) != -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user