aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-08-22 15:29:59 +1000
committerStefano Brivio <sbrivio@redhat.com>2023-08-22 12:15:38 +0200
commiteb8fbdbfd057cf3a10639ecdd91e6387436f31f8 (patch)
tree2d603efba3c31427452bead51ef4161e32d47307
parentb60fa33eeafbe2d73d3a4cb6586dd4d637751fa7 (diff)
downloadpasst-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar.gz
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar.bz2
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar.lz
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar.xz
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.tar.zst
passt-eb8fbdbfd057cf3a10639ecdd91e6387436f31f8.zip
inany: Add missing double include guard to inany.h
This was overlooked when the file was created. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--inany.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/inany.h b/inany.h
index 8f0897b..aadb20b 100644
--- a/inany.h
+++ b/inany.h
@@ -6,6 +6,9 @@
* IPv6 or IPv4 (encoded as IPv4-mapped IPv6 addresses)
*/
+#ifndef INANY_H
+#define INANY_H
+
/** union inany_addr - Represents either an IPv4 or IPv6 address
* @a6: Address as an IPv6 address, may be IPv4-mapped
* @v4mapped.zero: All zero-bits for an IPv4 address
@@ -90,3 +93,5 @@ static inline void inany_from_sockaddr(union inany_addr *aa, in_port_t *port,
ASSERT(0);
}
}
+
+#endif /* INANY_H */