summaryrefslogtreecommitdiffstats
path: root/ax25ipd
diff options
context:
space:
mode:
authorMichael Taylor <mctaylor@mctaylor.com>2004-12-12 05:22:41 +0000
committerMichael Taylor <mctaylor@mctaylor.com>2004-12-12 05:22:41 +0000
commit6c8ea5098046ec051c59e3dee2a561118c6a00f8 (patch)
tree9886b910e25cc67ad30574478a1056d773ebb929 /ax25ipd
parentfc67db05a79d429a5efe962887b286f56162e3f3 (diff)
#include <time.h> in io.c
tidy options struct initalization
Diffstat (limited to 'ax25ipd')
-rw-r--r--ax25ipd/ax25ipd.c12
-rw-r--r--ax25ipd/io.c1
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>