summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/socket-util.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-23 22:21:03 +0200
committerColin Guthrie <colin@mageia.org>2011-06-24 00:34:05 +0100
commit5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f (patch)
tree9d3d4c27d9dfedd4d3384e3559d01d673c042290 /src/pulsecore/socket-util.c
parent3adc43b8fe507e3140f7d6f9bab32584b9eadfa4 (diff)
win32: Make some unused-variable warnings go away
Diffstat (limited to 'src/pulsecore/socket-util.c')
-rw-r--r--src/pulsecore/socket-util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pulsecore/socket-util.c b/src/pulsecore/socket-util.c
index 46623c4d..00fcbc4f 100644
--- a/src/pulsecore/socket-util.c
+++ b/src/pulsecore/socket-util.c
@@ -72,8 +72,9 @@ void pa_socket_peer_to_string(int fd, char *c, size_t l) {
#ifndef OS_IS_WIN32
pa_assert_se(fstat(fd, &st) == 0);
- if (S_ISSOCK(st.st_mode)) {
+ if (S_ISSOCK(st.st_mode))
#endif
+ {
union {
struct sockaddr_storage storage;
struct sockaddr sa;
@@ -118,10 +119,11 @@ void pa_socket_peer_to_string(int fd, char *c, size_t l) {
}
}
-#ifndef OS_IS_WIN32
pa_snprintf(c, l, "Unknown network client");
return;
- } else if (S_ISCHR(st.st_mode) && (fd == 0 || fd == 1)) {
+ }
+#ifndef OS_IS_WIN32
+ else if (S_ISCHR(st.st_mode) && (fd == 0 || fd == 1)) {
pa_snprintf(c, l, "STDIN/STDOUT client");
return;
}