From 4384d3126b362c3aa261f4f0c815221b2cc5c647 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2006 18:56:23 +0000 Subject: [PATCH] Fix warning. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@381 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/socket-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyp/socket-server.c b/polyp/socket-server.c index 096d8a4..f200212 100644 --- a/polyp/socket-server.c +++ b/polyp/socket-server.c @@ -377,7 +377,7 @@ char *pa_socket_server_get_address(struct pa_socket_server *s, char *c, size_t l struct sockaddr_in sa; socklen_t l = sizeof(sa); - if (getsockname(s->fd, &sa, &l) < 0) { + if (getsockname(s->fd, (struct sockaddr*) &sa, &l) < 0) { pa_log(__FILE__": getsockname() failed: %s\n", strerror(errno)); return NULL; } -- 2.7.4