2005-09-15 Tor Lillqvist <tml@novell.com>
* broken-date-parser.c (get_wday, get_month)
- * camel-folder-search.c (check_header): Use g_ascii_str(n)casecmp()
- instead of str(n)casecmp(). The strings we are comparing in these
- cases should be just ASCII anyway, so spell it out that we really
- do need ASCII casefolding only.
+ * camel-folder-search.c (check_header)
+ * camel-http-stream.c (http_connect, http_get_statuscode): Use
+ g_ascii_str(n)casecmp() instead of str(n)casecmp(). The strings we
+ are comparing in these cases should be just ASCII anyway, so spell
+ it out that we really do need ASCII casefolding only.
* camel-debug.c: Use e_util_pthread_id() to identify threads.
d(printf("connecting to http stream @ '%s'\n", url->host));
- if (!strcasecmp (url->protocol, "https")) {
+ if (!g_ascii_strcasecmp (url->protocol, "https")) {
#ifdef HAVE_SSL
stream = camel_tcp_stream_ssl_new (http->session, url->host, SSL_FLAGS);
#endif
d(printf("HTTP Status: %s\n", buffer));
/* parse the HTTP status code */
- if (!strncasecmp (buffer, "HTTP/", 5)) {
+ if (!g_ascii_strncasecmp (buffer, "HTTP/", 5)) {
token = http_next_token (buffer);
http->statuscode = camel_header_decode_int (&token);
return http->statuscode;