]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
should fix pointer warning
authorsdhsdh <sdhsdh>
Mon, 15 Feb 2010 15:16:47 +0000 (15:16 +0000)
committersdhsdh <sdhsdh>
Mon, 15 Feb 2010 15:16:47 +0000 (15:16 +0000)
tos/lib/net/blip/TcpP.nc

index 4ade476c94f5a746cce999e839c3c5d471154d28..23d6cd6d3ef9f92679bded116cb3c9d5909c7f21 100644 (file)
@@ -65,12 +65,14 @@ module TcpP {
   struct tcplib_sock *tcplib_accept(struct tcplib_sock *conn,
                                     struct sockaddr_in6 *from) {
     int cid = find_client(conn);
   struct tcplib_sock *tcplib_accept(struct tcplib_sock *conn,
                                     struct sockaddr_in6 *from) {
     int cid = find_client(conn);
+    int buf_len;
 
     printfUART("tcplib_accept: cid: %i\n", cid);
 
     if (cid == N_CLIENTS) return NULL;
 
     printfUART("tcplib_accept: cid: %i\n", cid);
 
     if (cid == N_CLIENTS) return NULL;
-    if (signal Tcp.accept[cid](from, &conn->tx_buf, &conn->tx_buf_len)) {
+    if (signal Tcp.accept[cid](from, &conn->tx_buf, &buf_len)) {
       if (conn->tx_buf == NULL) return NULL;
       if (conn->tx_buf == NULL) return NULL;
+      conn->tx_buf_len = buf_len;
       return conn;
     }
     return NULL;
       return conn;
     }
     return NULL;