Fix a couple of argument types.

This commit is contained in:
nicm 2017-03-17 14:51:41 +00:00
parent 481e48d119
commit 67d2335130
2 changed files with 3 additions and 3 deletions

View File

@ -81,8 +81,8 @@ cmd_show_messages_jobs(struct cmdq_item *item, int blank)
cmdq_print(item, "%s", ""); cmdq_print(item, "%s", "");
blank = 0; blank = 0;
} }
cmdq_print(item, "Job %u: %s [fd=%d, pid=%d, status=%d]", cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",
n, job->cmd, job->fd, job->pid, job->status); n, job->cmd, job->fd, (long)job->pid, job->status);
n++; n++;
} }
return (n != 0); return (n != 0);

2
utf8.c
View File

@ -112,7 +112,7 @@ utf8_width(wchar_t wc)
width = wcwidth(wc); width = wcwidth(wc);
if (width < 0 || width > 0xff) { if (width < 0 || width > 0xff) {
log_debug("Unicode %04x, wcwidth() %d", wc, width); log_debug("Unicode %04lx, wcwidth() %d", (long)wc, width);
return (-1); return (-1);
} }
return (width); return (width);