Commit 6e1e0d3f authored by Michael Jerris's avatar Michael Jerris

msvc warnings fixes

darcs-hash:20061009211509-16063-7c8f72f49b3f4255583fb0e223c377bd4a1d23be.gz
parent 67b2755d
......@@ -422,7 +422,7 @@ tagi_t *sip_url_query_as_taglist(su_home_t *home, char const *query,
hc = (msg_hclass_t *)sip_tag_list[j]->tt_magic;
if (n == 1 && strncasecmp(hnv, hc->hc_short, 1) == 0)
break;
else if (n == hc->hc_len && strncasecmp(hnv, hc->hc_name, n) == 0)
else if (n == (size_t)hc->hc_len && strncasecmp(hnv, hc->hc_name, n) == 0)
break;
}
......
......@@ -81,7 +81,7 @@ SU_DLL char const *su_slprintf(su_strlst_t *self, char const *fmt, ...);
SU_DLL char const *su_slvprintf(su_strlst_t *self, char const *fmt, va_list ap);
/** Get a numbered item from list. */
SU_DLL char const *su_strlst_item(su_strlst_t const *, unsigned i);
SU_DLL char const *su_strlst_item(su_strlst_t const *, usize_t i);
/** Set a numbered item to list */
SU_DLL char const *su_strlst_set_item(su_strlst_t *self, unsigned i,
......
......@@ -453,7 +453,7 @@ char const *su_slvprintf(su_strlst_t *self, char const *fmt, va_list ap)
* Pointer to string, if item exists, or NULL if index is out of bounds or
* list does not exist.
*/
char const *su_strlst_item(su_strlst_t const *self, unsigned i)
char const *su_strlst_item(su_strlst_t const *self, usize_t i)
{
if (self && i < self->sl_len)
return self->sl_list[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment