about summary refs log tree commit diff
path: root/manual/examples/mkfsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/mkfsock.c')
-rw-r--r--manual/examples/mkfsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/mkfsock.c b/manual/examples/mkfsock.c
index 8683fbdc54..c6603af0ae 100644
--- a/manual/examples/mkfsock.c
+++ b/manual/examples/mkfsock.c
@@ -13,7 +13,7 @@ make_named_socket (const char *filename)
   size_t size;
 
   /* Create the socket.  */
-  sock = socket (PF_UNIX, SOCK_DGRAM, 0);
+  sock = socket (PF_LOCAL, SOCK_DGRAM, 0);
   if (sock < 0)
     {
       perror ("socket");