mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
Fix some compiler warnings about unused variables.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@379 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
cd3691dff7
commit
456e25634c
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue