diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-06 12:15:58 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-19 08:31:31 +0100 |
commit | a3b7d9665b9c1141b7b39d00a0cb2c077bc155eb (patch) | |
tree | 6a58267df172f864f627fc22c025b257b55a8ae0 | |
parent | 2c69e1dd58e7ef4b0f6f0a4491661691a9209714 (diff) | |
download | slirp-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.h | 4 | ||||
-rw-r--r-- | main.h | 4 | ||||
-rw-r--r-- | tftp.h | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -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 @@ -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 @@ -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 |