diff --git a/ndhc/leasefile.c b/ndhc/leasefile.c index bc1af48..21c1bda 100644 --- a/ndhc/leasefile.c +++ b/ndhc/leasefile.c @@ -1,6 +1,6 @@ /* leasefile.c - functions for writing the lease file * - * Copyright (c) 2011 Nicholas J. Kain + * Copyright (c) 2011-2014 Nicholas J. Kain * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -36,6 +36,7 @@ #include #include #include +#include "leasefile.h" #include "log.h" #include "strl.h" #include "io.h" @@ -49,7 +50,7 @@ void set_leasefile(char *lf) strnkcpy(leasefile, lf, sizeof leasefile); } -void open_leasefile() +void open_leasefile(void) { if (strlen(leasefile) > 0) { leasefilefd = open(leasefile, O_WRONLY|O_TRUNC|O_CREAT, 0644); diff --git a/ndhc/leasefile.h b/ndhc/leasefile.h index 3c01a1a..bb2b9b7 100644 --- a/ndhc/leasefile.h +++ b/ndhc/leasefile.h @@ -1,6 +1,6 @@ /* leasefile.h - functions for writing the lease file * - * Copyright (c) 2011 Nicholas J. Kain + * Copyright (c) 2011-2014 Nicholas J. Kain * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,6 +26,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ -void set_leasefile(char *lf); -void open_leasefile(); -void write_leasefile(struct in_addr ipnum); +#ifndef NJK_NDHC_LEASEFILE_H_ +#define NJK_NDHC_LEASEFILE_H_ + +extern void set_leasefile(char *lf); +extern void open_leasefile(void); +extern void write_leasefile(struct in_addr ipnum); + +#endif /* NJK_NDHC_LEASEFILE_H_ */ +