Skip to content

Commit

Permalink
various: add header guards [lgtm scan]
Browse files Browse the repository at this point in the history
  • Loading branch information
kerolasa committed Nov 19, 2019
1 parent 00a161b commit 91c83d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ninfod/ninfod.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
* Author:
* YOSHIFUJI Hideaki <[email protected]>
*/
#ifndef IPUTILS_NINFOD_H
#define IPUTILS_NINFOD_H

/* definitions */
#define NINFOD "ninfod"
Expand Down Expand Up @@ -118,3 +120,4 @@ int pr_nodeinfo_ipv4addr(CHECKANDFILL_ARGS);
void init_nodeinfo_nodename(INIT_ARGS);
int pr_nodeinfo_nodename(CHECKANDFILL_ARGS);

#endif /* IPUTILS_NINFOD_H */
5 changes: 5 additions & 0 deletions ping/ping.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef IPUTILS_PING_H
#define IPUTILS_PING_H

/* Includes */
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -409,3 +412,5 @@ struct ni_hdr {
#define ni_cksum ni_u.icmp6_cksum
#define ni_qtype ni_u.icmp6_data16[0]
#define ni_flags ni_u.icmp6_data16[1]

#endif /* IPUTILS_PING_H */
4 changes: 4 additions & 0 deletions tftpd/tftp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef IPUTILS_TFTPD_H
#define IPUTILS_TFTPD_H
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
Expand Down Expand Up @@ -38,3 +40,5 @@ extern int write_behind(FILE *file, int convert);
extern int synchnet(int f);
extern struct tftphdr *w_init(void);
extern struct tftphdr *r_init(void);

#endif /* IPUTILS_TFTPD_H */

0 comments on commit 91c83d9

Please sign in to comment.