openbsd-ports/audio/umurmur/patches/patch-src_client_c
dcoppa aa0c1124ca Update to umurmur-0.2.10.
From maintainer Jonathon Sisson, tweaked by me
2012-04-12 10:03:19 +00:00

29 lines
930 B
Plaintext

$OpenBSD: patch-src_client_c,v 1.3 2012/04/12 10:03:19 dcoppa Exp $
--- src/client.c.orig Sun Mar 18 20:26:26 2012
+++ src/client.c Thu Apr 12 11:36:49 2012
@@ -28,6 +28,7 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/types.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <fcntl.h>
@@ -197,7 +198,7 @@ void Client_token_free(client_t *client)
void recheckCodecVersions()
{
client_t *client_itr = NULL;
- int max = 0, version, current_version;
+ int max = 0, version = 0, current_version = 0;
message_t *sendmsg;
struct dlist codec_list, *itr, *save;
codec_t *codec_itr, *cd;
@@ -574,6 +575,7 @@ int Client_send_message_ver(client_t *client, message_
return Client_send_message(client, msg);
else
Msg_free(msg);
+ return 0;
}
int Client_send_message(client_t *client, message_t *msg)