summaryrefslogtreecommitdiff
path: root/src/htsserver.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-04-21 18:46:35 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-04-21 18:46:35 +0000
commit78173ef8190a1d5f9bab28053b0c274329533e59 (patch)
treebcb808532b5217262ccd1cfc08a33c4af30be108 /src/htsserver.c
parentaad018682d4298a476e2bca6eb8756de41fa8ca0 (diff)
Build warning cleanup.
* introduced SOClen type (aka. socklen_t)
Diffstat (limited to 'src/htsserver.c')
-rw-r--r--src/htsserver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/htsserver.c b/src/htsserver.c
index 9289af1..609fd41 100644
--- a/src/htsserver.c
+++ b/src/htsserver.c
@@ -189,7 +189,7 @@ T_SOC smallserver_init(int* port,char* adr) {
if ( (soc = (T_SOC) socket(SOCaddr_sinfamily(server), SOCK_STREAM, 0)) != INVALID_SOCKET) {
SOCaddr_initport(server, *port);
if ( bind(soc,(struct sockaddr*) &server, server_size) == 0 ) {
- /*int len;
+ /*SOClen len;
SOCaddr server2;
len=sizeof(server2);*/
// effacer structure
@@ -438,13 +438,11 @@ int smallserver(T_SOC soc,char* url,char* method,char* data, char* path) {
strcatbuff(buffer, "&");
while( s && (e = strchr(s, '=')) && (f = strchr(s, '&')) ) {
char* ua;
- int len;
String sua = STRING_EMPTY;
*e = *f = '\0';
ua = e + 1;
if (strfield2(ua, "on")) /* hack : "on" == 1 */
ua = "1";
- len = (int) strlen(ua);
unescapehttp(ua, &sua);
inthash_write(NewLangList, s, (intptr_t)StringAcquire(&sua));
s = f + 1;