[xiph-commits] r9646 - icecast/branches/kh/icecast/src
oddsock at svn.xiph.org
oddsock at svn.xiph.org
Fri Jul 29 16:28:58 PDT 2005
Author: oddsock
Date: 2005-07-29 16:28:57 -0700 (Fri, 29 Jul 2005)
New Revision: 9646
Modified:
icecast/branches/kh/icecast/src/auth_url.c
icecast/branches/kh/icecast/src/client.c
Log:
windows-isms...
Modified: icecast/branches/kh/icecast/src/auth_url.c
===================================================================
--- icecast/branches/kh/icecast/src/auth_url.c 2005-07-29 16:08:39 UTC (rev 9645)
+++ icecast/branches/kh/icecast/src/auth_url.c 2005-07-29 23:28:57 UTC (rev 9646)
@@ -122,7 +122,7 @@
if (strncasecmp (ptr, url->timelimit_header, url->timelimit_header_len) == 0)
{
unsigned int limit = 0;
- sscanf (ptr+url->timelimit_header_len, "%u\r\n", &limit);
+ sscanf ((char *)ptr+url->timelimit_header_len, "%u\r\n", &limit);
client->con->discon_time = global.time + limit;
}
}
Modified: icecast/branches/kh/icecast/src/client.c
===================================================================
--- icecast/branches/kh/icecast/src/client.c 2005-07-29 16:08:39 UTC (rev 9645)
+++ icecast/branches/kh/icecast/src/client.c 2005-07-29 23:28:57 UTC (rev 9646)
@@ -43,6 +43,10 @@
#ifdef HAVE_AIO
#include <errno.h>
#endif
+
+#ifdef WIN32
+#define snprintf _snprintf
+#endif
/* should be called with global lock held */
int client_create (client_t **c_ptr, connection_t *con, http_parser_t *parser)
More information about the commits
mailing list