headers: added header guards

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-12-09 15:44:58 +01:00
parent f6cb0db8e0
commit a9cb1b7f1e
3 changed files with 15 additions and 0 deletions

View File

@@ -17,6 +17,9 @@
*/
#ifndef CLOEXEC_H
# define CLOEXEC_H
#include <stdbool.h>
/* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true,
@@ -36,3 +39,5 @@ int set_cloexec_flag (int desc, bool value);
be duplicated. */
int dup_cloexec (int fd);
#endif /* CLOEXEC_H */

View File

@@ -15,5 +15,10 @@
* Lesser General Public License for more details.
*/
#ifndef LZS_H
# define LZS_H
int lzs_decompress(unsigned char *dst, int dstlen, const unsigned char *src, int srclen);
int lzs_compress(unsigned char *dst, int dstlen, const unsigned char *src, int srclen);
#endif

View File

@@ -17,4 +17,9 @@
* Nikos Mavrogiannopoulos <nmav@redhat.com>
*/
#ifndef GEOIP_H
# define GEOIP_H
char * geo_lookup(const char *ip, char *buf, unsigned buf_size);
#endif