diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-09 20:16:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-09 20:16:52 +0000 |
commit | d36a5863ee8d8f440934f93969da167cb383f4c7 (patch) | |
tree | 17d9540d0de3f99feae37f16423c033e75414723 /src/util/common_logging.c | |
parent | bc28ff95e287a6794890c75348075fa9bd7af2f7 (diff) | |
download | gnunet-d36a5863ee8d8f440934f93969da167cb383f4c7.tar.gz gnunet-d36a5863ee8d8f440934f93969da167cb383f4c7.zip |
removing remenants of abstract unix domain socket handling, this finishes addressing #2887
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 93a104c8d..48a6724f7 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -1132,9 +1132,9 @@ GNUNET_i2s_full (const struct GNUNET_PeerIdentity *pid) | |||
1132 | * in the entire API that is NOT reentrant! | 1132 | * in the entire API that is NOT reentrant! |
1133 | * | 1133 | * |
1134 | * @param addr the address | 1134 | * @param addr the address |
1135 | * @param addrlen the length of the address | 1135 | * @param addrlen the length of the address in @a addr |
1136 | * @return nicely formatted string for the address | 1136 | * @return nicely formatted string for the address |
1137 | * will be overwritten by next call to GNUNET_a2s. | 1137 | * will be overwritten by next call to #GNUNET_a2s. |
1138 | */ | 1138 | */ |
1139 | const char * | 1139 | const char * |
1140 | GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen) | 1140 | GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen) |
@@ -1178,7 +1178,7 @@ GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen) | |||
1178 | return "<unbound UNIX client>"; | 1178 | return "<unbound UNIX client>"; |
1179 | un = (const struct sockaddr_un *) addr; | 1179 | un = (const struct sockaddr_un *) addr; |
1180 | off = 0; | 1180 | off = 0; |
1181 | if (un->sun_path[0] == '\0') | 1181 | if ('\0' == un->sun_path[0]) |
1182 | off++; | 1182 | off++; |
1183 | memset (buf, 0, sizeof (buf)); | 1183 | memset (buf, 0, sizeof (buf)); |
1184 | snprintf (buf, sizeof (buf) - 1, "%s%.*s", (off == 1) ? "@" : "", | 1184 | snprintf (buf, sizeof (buf) - 1, "%s%.*s", (off == 1) ? "@" : "", |