summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ax25rtd/ax25rtd.c6
-rw-r--r--listen/listen.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c
index 9351fef..dbdc0b2 100644
--- a/ax25rtd/ax25rtd.c
+++ b/ax25rtd/ax25rtd.c
@@ -1,4 +1,4 @@
-/* $Id: ax25rtd.c,v 1.3 2002/03/04 01:43:49 csmall Exp $
+/* $Id: ax25rtd.c,v 1.4 2002/11/03 19:51:08 mctaylor Exp $
*
* Copyright (c) 1996 Jörg Reuter (jreuter@poboxes.com)
*
@@ -66,7 +66,7 @@
#include "../pathnames.h"
#include "ax25rtd.h"
-const char *Version = "ax25rtd $Revision: 1.3 $";
+const char *Version = "ax25rtd $Revision: 1.4 $";
config *Config = NULL;
int reload = 0;
@@ -153,7 +153,7 @@ int main(int argc, char **argv)
if (fork())
return 0;
- 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("AX.25 socket");
return 1;
}
diff --git a/listen/listen.c b/listen/listen.c
index be6dfbe..e28bb4e 100644
--- a/listen/listen.c
+++ b/listen/listen.c
@@ -122,7 +122,7 @@ int main(int argc, char **argv)
}
}
- if ((s = socket(AF_PACKET, SOCK_PACKET, htons(proto))) == -1) {
+ if ((s = socket(PF_PACKET, SOCK_PACKET, htons(proto))) == -1) {
perror("socket");
return 1;
}