mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Add multiple inclusion guards. Mostly this is for extern.h, which was
included twice by lprint.c, which included both finger.h and extern.h. finger.h, in turn, includes extern.h. The redundant include of extern.h was removed from lprint.c, as part of this change, but the include guards were added anyway out of spite.
This commit is contained in:
parent
6df0617286
commit
8714ee5954
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126963
@ -34,6 +34,9 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef _EXTERN_H_
|
||||
#define _EXTERN_H_
|
||||
|
||||
extern char tbuf[1024]; /* Temp buffer for anybody. */
|
||||
extern int entries; /* Number of people. */
|
||||
extern DB *db; /* Database. */
|
||||
@ -58,3 +61,5 @@ PERSON *palloc(void);
|
||||
char *prphone(char *);
|
||||
void sflag_print(void);
|
||||
int show_text(const char *, const char *, const char *);
|
||||
|
||||
#endif /* !_EXTERN_H_ */
|
||||
|
@ -37,6 +37,9 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef _FINGER_H_
|
||||
#define _FINGER_H_
|
||||
|
||||
typedef struct person {
|
||||
uid_t uid; /* user id */
|
||||
char *dir; /* user's home directory */
|
||||
@ -69,3 +72,5 @@ typedef struct where {
|
||||
#define TIME_LIMIT 360 /* Do not keep listinging forever */
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
#endif /* !_FINGER_H_ */
|
||||
|
@ -60,7 +60,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <utmp.h>
|
||||
#include "finger.h"
|
||||
#include "pathnames.h"
|
||||
#include "extern.h"
|
||||
|
||||
#define LINE_LEN 80
|
||||
#define TAB_LEN 8 /* 8 spaces between tabs */
|
||||
|
Loading…
Reference in New Issue
Block a user