Modules/IPStack - (minor) Fixed return value of UDP channel write
authorJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 04:46:01 +0000 (12:46 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 04:46:01 +0000 (12:46 +0800)
KernelLand/Modules/IPStack/udp.c

index 1d80569..ae3806b 100644 (file)
@@ -268,7 +268,7 @@ size_t UDP_Channel_Write(tVFS_Node *Node, off_t Offset, size_t Length, const voi
 
        UDP_SendPacketTo(chan, ep->AddrType, &ep->Addr, ep->Port, data, (size_t)Length - ofs);
        
-       return 0;
+       return Length;
 }
 
 /**

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