* fix compiler warning for newest gcc/g++

This commit is contained in:
djcb
2012-03-13 23:06:17 +02:00
parent a051f3a89f
commit daaec407eb
11 changed files with 186 additions and 174 deletions

View File

@ -93,7 +93,8 @@ send_expr (const char* frm, ...)
expr = NULL;
exprlen = g_vasprintf (&expr, frm, ap);
hdrlen = snprintf (hdr, sizeof(hdr), BOX "%u" BOX, exprlen);
hdrlen = snprintf (hdr, sizeof(hdr), BOX "%u" BOX,
(unsigned)exprlen);
if (write (fileno(stdout), hdr, hdrlen) < 0)
MU_WRITE_LOG ("error writing output: %s", strerror(errno));