summaryrefslogtreecommitdiffstats
path: root/listen/listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'listen/listen.c')
-rw-r--r--listen/listen.c2
1 files changed, 1 insertions, 1 deletions
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;
}