This is a fix for bug #6856 (Verse crashing on 64bit linux)
authorKent Mein <mein@cs.umn.edu>
Tue, 26 Jun 2007 15:08:40 +0000 (15:08 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 26 Jun 2007 15:08:40 +0000 (15:08 +0000)
https://projects.blender.org/tracker/index.php?func=detail&aid=6856&group_id=9&atid=125

I basically fixed some warnings about imcompatable types on 64bit linux
and the crashing stopped.

Kent

extern/verse/dist/v_connection.c
extern/verse/dist/v_network.c

index 2a97ec66ed1cf6681d9d4b0f30766084c9dbcc4a..3bfafad566063fe5e07da37356ebe128eb851927 100644 (file)
@@ -275,7 +275,8 @@ boolean v_con_callback_update(void)
 {
        static unsigned int seconds;
        boolean output = FALSE;
-       unsigned int    size, connection, s;
+       size_t  size; 
+       unsigned int connection, s;
        VNetInPacked    *p;
 
        v_n_get_current_time(&s, NULL);
index 47bf7d970f35312400b89a08f5552a2b9efa735e..6a85f9d0e25e9ffceacc7dcbed92c54b503c5b7f 100644 (file)
@@ -209,7 +209,8 @@ unsigned int v_n_wait_for_incoming(unsigned int microseconds)
 int v_n_receive_data(VNetworkAddress *address, char *data, size_t length)
 {
        struct  sockaddr_in address_in;
-       size_t  from_length = sizeof address_in, len;
+       socklen_t from_length = sizeof address_in;
+       size_t  len;
 
        if(v_n_socket_create() == -1)
                return 0;