diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-05 18:51:46 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-05 18:51:46 +0000 |
commit | 456e25634ce860d1576b6f09f11cdab8f9d8e685 (patch) | |
tree | 1fc102a771fa0a3ded75f4645e7c5384950aff8a | |
parent | cd3691dff79e18a288b7371bd0bed92d3abb5991 (diff) |
Fix some compiler warnings about unused variables.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@379 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | polyp/socket-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polyp/socket-util.c b/polyp/socket-util.c index 4204ec95..eb6b4246 100644 --- a/polyp/socket-util.c +++ b/polyp/socket-util.c @@ -97,10 +97,10 @@ void pa_socket_peer_to_string(int fd, char *c, size_t l) { } int pa_socket_low_delay(int fd) { +#ifdef SO_PRIORITY int priority; assert(fd >= 0); -#ifdef SO_PRIORITY priority = 7; if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, (void*)&priority, sizeof(priority)) < 0) return -1; @@ -117,6 +117,7 @@ int pa_socket_tcp_low_delay(int fd) { ret = pa_socket_low_delay(fd); on = 1; + tos = 0; #if defined(SOL_TCP) || defined(IPPROTO_TCP) #if defined(SOL_TCP) |