Usermode/AxWin3 - Fixed scan-build complaints in libaxwin3.so
authorJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:34:02 +0000 (20:34 +0800)
committerJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:34:02 +0000 (20:34 +0800)
Usermode/Applications/axwin3_src/libaxwin3.so_src/msg.c

index 955da44..a9e4164 100644 (file)
@@ -59,13 +59,15 @@ void AxWin3_Connect(const char *ServerDesc)
                }
                break;
        case 'u':
-               while(*ServerDesc && *ServerDesc != ':')        ServerDesc ++;
-               ServerDesc ++;
+               assert( strncmp(ServerDesc, "udp:", 4) == 0 );
+               ServerDesc += 4;
+               _SysDebug("TODO: UDP connection to '%s'", ServerDesc);
                // TODO: Open socket and create UDP header
                break;
        case 't':
-               while(*ServerDesc && *ServerDesc != ':')        ServerDesc ++;
-               ServerDesc ++;
+               assert( strncmp(ServerDesc, "tcp:", 4) == 0 );
+               ServerDesc += 4;
+               _SysDebug("TODO: TCP connection to '%s'", ServerDesc);
                // TODO: Open socket
                break;
        case 'p':

UCC git Repository :: git.ucc.asn.au