Added a "char *" cast which does not hurt on Linux and which prevents a
authorThomas Lopatic <thomas@lopatic.de>
Thu, 16 Sep 2004 08:46:52 +0000 (08:46 +0000)
committerThomas Lopatic <thomas@lopatic.de>
Thu, 16 Sep 2004 08:46:52 +0000 (08:46 +0000)
warning on Windows.

lib/dot_draw/src/olsrd_dot_draw.c

index 9a68403..842f60b 100644 (file)
@@ -73,7 +73,7 @@ plugin_ipc_init()
     }
   else
     {
-    if (setsockopt(ipc_socket, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0) 
+      if (setsockopt(ipc_socket, SOL_SOCKET, SO_REUSEADDR, (char *)&yes, sizeof(yes)) < 0) 
       {
        perror("SO_REUSEADDR failed");
        return 0;