diff options
author | Dean Camera <[email protected]> | 2010-02-18 05:33:35 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-02-18 05:33:35 +0000 |
commit | 42b850f2b94941066c36d85b4878d6a348260b4d (patch) | |
tree | aec74a784b2690ca8aa0fb778883441ade6b18bf /Projects/Webserver/Lib/uip | |
parent | 012628f635b66169b81ab66d4059c3360dd4b612 (diff) | |
download | qmk_firmware-42b850f2b94941066c36d85b4878d6a348260b4d.tar.gz qmk_firmware-42b850f2b94941066c36d85b4878d6a348260b4d.zip |
Use a temporary variable to hold the current URI length in the Webserver, rather than calling strlen() multiple times on an unchanged buffer. Clean up uip-split.c.
Diffstat (limited to 'Projects/Webserver/Lib/uip')
-rw-r--r-- | Projects/Webserver/Lib/uip/uip-split.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/uip/uip-split.c b/Projects/Webserver/Lib/uip/uip-split.c index 9ad6b484c2..5924fabe5f 100644 --- a/Projects/Webserver/Lib/uip/uip-split.c +++ b/Projects/Webserver/Lib/uip/uip-split.c @@ -80,7 +80,6 @@ uip_split_output(void) #endif /* UIP_CONF_IPV6 */ /* Transmit the first packet. */ - /* uip_fw_output();*/ #if UIP_CONF_IPV6 tcpip_ipv6_output(); #else @@ -103,7 +102,6 @@ uip_split_output(void) BUF->len[1] = (uip_len - UIP_LLH_LEN) & 0xff; #endif /* UIP_CONF_IPV6 */ - /* uip_appdata += len1;*/ memcpy(uip_appdata, (u8_t *)uip_appdata + len1, len2); uip_add32(BUF->seqno, len1); @@ -123,12 +121,10 @@ uip_split_output(void) #endif /* UIP_CONF_IPV6 */ /* Transmit the second packet. */ - /* uip_fw_output();*/ #if UIP_CONF_IPV6 tcpip_ipv6_output(); #else RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len); - //tcpip_output(); #endif /* UIP_CONF_IPV6 */ return; } |