mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
WARNS=2 fix, use __FBSDID().
WARNS=2 is not in Makefile, as this will be the default.
This commit is contained in:
parent
1c6cde4bb5
commit
2c062c85e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87679
@ -34,22 +34,23 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char copyright[] =
|
static const char copyright[] =
|
||||||
"@(#) Copyright (c) 1989, 1993\n\
|
"@(#) Copyright (c) 1989, 1993\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
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
static const char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93";
|
||||||
static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93";
|
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
|
||||||
"$FreeBSD$";
|
|
||||||
#endif /* not lint */
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <langinfo.h>
|
#include <langinfo.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
@ -62,17 +63,18 @@ static const char rcsid[] =
|
|||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
|
||||||
static void usage __P((void));
|
static void usage __P((void));
|
||||||
void output __P((struct utmp *));
|
static void output __P((struct utmp *));
|
||||||
|
static FILE *file __P((const char *));
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
register char *p;
|
char *p;
|
||||||
struct utmp usr;
|
struct utmp usr;
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
FILE *ufp, *file();
|
FILE *ufp;
|
||||||
char *t;
|
char *t;
|
||||||
|
|
||||||
(void) setlocale(LC_TIME, "");
|
(void) setlocale(LC_TIME, "");
|
||||||
@ -154,9 +156,9 @@ output(up)
|
|||||||
(void)putchar('\n');
|
(void)putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE *
|
static FILE *
|
||||||
file(name)
|
file(name)
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
FILE *ufp;
|
FILE *ufp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user