diff options
Diffstat (limited to 'ax25ipd')
-rw-r--r-- | ax25ipd/ax25ipd.c | 12 | ||||
-rw-r--r-- | ax25ipd/io.c | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index 8757e17..e81d877 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -35,12 +35,12 @@ int opt_help = 0; char opt_configfile[1024]; struct option options[] = { - "version", 0, &opt_version, 1, - "loglevel", 1, &opt_loglevel, 1, - "help", 0, &opt_help, 1, - "configfile", 1, NULL, 0, - "nofork", 0, &opt_nofork, 1, - 0, 0, 0, 0 + {"version", 0, &opt_version, 1}, + {"loglevel", 1, &opt_loglevel, 1}, + {"help", 0, &opt_help, 1}, + {"configfile", 1, NULL, 0}, + {"nofork", 0, &opt_nofork, 1}, + {0, 0, 0, 0} }; int main(int argc, char **argv) diff --git a/ax25ipd/io.c b/ax25ipd/io.c index ec8de4a..9c59ac1 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -15,6 +15,7 @@ #include <sys/types.h> #include <sys/time.h> +#include <time.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/in_systm.h> |