From 647d88d649c267220feb8b5f53ec3e96359a72fc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Feb 2017 20:20:33 +0100 Subject: fix sun_len issue (#4816) by adding test and fixing typo --- src/transport/plugin_transport_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/transport/plugin_transport_unix.c') diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 49a5e89ed..6bcb7290f 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -566,7 +566,7 @@ unix_address_to_sockaddr (const char *unixpath, GNUNET_memcpy (un->sun_path, unixpath, slen); un->sun_path[slen] = '\0'; slen = sizeof (struct sockaddr_un); -#if HAVE_SOCKADDR_IN_SIN_LEN +#if HAVE_SOCKADDR_UN_SUN_LEN un->sun_len = (u_char) slen; #endif (*sock_len) = slen; @@ -1229,7 +1229,7 @@ unix_plugin_select_read (void *cls) { struct Plugin *plugin = cls; const struct GNUNET_SCHEDULER_TaskContext *tc; - + plugin->read_task = NULL; tc = GNUNET_SCHEDULER_get_task_context (); if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_READ_READY)) @@ -1252,7 +1252,7 @@ unix_plugin_select_write (void *cls) { struct Plugin *plugin = cls; const struct GNUNET_SCHEDULER_TaskContext *tc; - + plugin->write_task = NULL; tc = GNUNET_SCHEDULER_get_task_context (); if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_WRITE_READY)) -- cgit v1.2.3