diff options
Diffstat (limited to 'ax25')
-rw-r--r-- | ax25/axspawn.c | 3 | ||||
-rw-r--r-- | ax25/mheardd.c | 2 | ||||
-rw-r--r-- | ax25/rxecho.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/ax25/axspawn.c b/ax25/axspawn.c index ab5ab92..6c63fde 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.6 1996/08/24 22:33:05 jreuter Exp jreuter $ + * $Id: axspawn.c,v 1.2 2002/11/03 19:51:10 mctaylor Exp $ * * axspawn.c - run a program from ax25d. * @@ -125,6 +125,7 @@ #include <errno.h> #include <syslog.h> #include <sys/time.h> +#include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> diff --git a/ax25/mheardd.c b/ax25/mheardd.c index f1a6aab..d0aab98 100644 --- a/ax25/mheardd.c +++ b/ax25/mheardd.c @@ -182,7 +182,7 @@ int main(int argc, char **argv) fclose(fp); } - if ((s = socket(AF_INET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) { + if ((s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) { perror("mheardd: socket"); return 1; } diff --git a/ax25/rxecho.c b/ax25/rxecho.c index 0dd601f..a9f9a64 100644 --- a/ax25/rxecho.c +++ b/ax25/rxecho.c @@ -350,7 +350,7 @@ int main(int argc, char **argv) if ((list = readconfig()) == NULL) return 1; - if ((s = socket(AF_INET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) { + if ((s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) { perror("rxecho: socket:"); return 1; } |