--- rpl/src/asprintf.c 2013/02/27 17:11:39 1.42 +++ rpl/src/asprintf.c 2013/03/20 17:11:43 1.43 @@ -47,7 +47,7 @@ valsprintf(unsigned char **strp, const c return -1; } - if (((int) (s = vsnprintf(b, bs, fmt, cap))) < 0) + if (((int) (s = (size_t) vsnprintf(b, bs, fmt, cap))) < 0) { free(b); return -1; @@ -65,7 +65,7 @@ valsprintf(unsigned char **strp, const c return -1; } - return s; + return((int) s); }