aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-09-23 20:51:23 +0200
committerMax Kellermann <max@duempel.org>2010-09-23 20:51:23 +0200
commita016fb4048314e301d1ab85a116f1e4ce203c56d (patch)
treefff74d9c1a6272372bff1f11172039e8aa67e7fd
parente8ebb1af91435674784dcbbc3207331fcdac7458 (diff)
downloadmpd-a016fb4048314e301d1ab85a116f1e4ce203c56d.tar.gz
mpd-a016fb4048314e301d1ab85a116f1e4ce203c56d.tar.xz
mpd-a016fb4048314e301d1ab85a116f1e4ce203c56d.zip
listen: fix "unused parameter" warning on WIN32
-rw-r--r--src/listen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c
index 3028b9476..f6757d4e2 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -422,6 +422,8 @@ static int get_remote_uid(int fd)
if (getpeereid(fd, &euid, &egid) == 0)
return euid;
+#else
+ (void)fd;
#endif
return -1;
#endif