aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-06 12:15:58 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-19 08:31:31 +0100
commita3b7d9665b9c1141b7b39d00a0cb2c077bc155eb (patch)
tree6a58267df172f864f627fc22c025b257b55a8ae0
parent2c69e1dd58e7ef4b0f6f0a4491661691a9209714 (diff)
downloadslirp-a3b7d9665b9c1141b7b39d00a0cb2c077bc155eb.zip
slirp-a3b7d9665b9c1141b7b39d00a0cb2c077bc155eb.tar.gz
slirp-a3b7d9665b9c1141b7b39d00a0cb2c077bc155eb.tar.bz2
janitor: add guards to headers
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--bootp.h4
-rw-r--r--main.h4
-rw-r--r--tftp.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/bootp.h b/bootp.h
index df9cf51..787389e 100644
--- a/bootp.h
+++ b/bootp.h
@@ -1,4 +1,6 @@
/* bootp/dhcp defines */
+#ifndef SLIRP_BOOTP_H
+#define SLIRP_BOOTP_H 1
#define BOOTP_SERVER 67
#define BOOTP_CLIENT 68
@@ -120,3 +122,5 @@ typedef struct {
#define NB_BOOTP_CLIENTS 16
void bootp_input(struct mbuf *m);
+
+#endif
diff --git a/main.h b/main.h
index a900c95..b1f94c6 100644
--- a/main.h
+++ b/main.h
@@ -4,6 +4,8 @@
* Please read the file COPYRIGHT for the
* terms and conditions of the copyright.
*/
+#ifndef SLIRP_MAIN_H
+#define SLIRP_MAIN_H 1
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
@@ -45,3 +47,5 @@ extern int tcp_keepintvl;
int if_encap(Slirp *slirp, struct mbuf *ifm);
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
+
+#endif
diff --git a/tftp.h b/tftp.h
index c19b159..d191e61 100644
--- a/tftp.h
+++ b/tftp.h
@@ -1,4 +1,6 @@
/* tftp defines */
+#ifndef SLIRP_TFTP_H
+#define SLIRP_TFTP_H 1
#define TFTP_SESSIONS_MAX 3
@@ -43,3 +45,5 @@ struct tftp_session {
};
void tftp_input(struct mbuf *m);
+
+#endif