aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/examples/mkfsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/examples/mkfsock.c b/manual/examples/mkfsock.c
index 46729d1..8683fbd 100644
--- a/manual/examples/mkfsock.c
+++ b/manual/examples/mkfsock.c
@@ -5,7 +5,7 @@
#include <sys/socket.h>
#include <sys/un.h>
-int
+int
make_named_socket (const char *filename)
{
struct sockaddr_un name;
@@ -21,7 +21,7 @@ make_named_socket (const char *filename)
}
/* Bind a name to the socket. */
- name.sun_family = AF_FILE;
+ name.sun_family = AF_LOCAL;
strncpy (name.sun_path, filename, sizeof (name.sun_path));
/* The size of the address is