aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2017-03-17 14:51:41 +0000
committernicm <nicm>2017-03-17 14:51:41 +0000
commit67d2335130295f626cc87468fc069ecdedf2d92a (patch)
tree566a2f8d8a61160490a9a97260a6a7c87c08eb13
parent481e48d119b0cf2fbf2556a6f4b3f4bbda5fdf7e (diff)
downloadrtmux-67d2335130295f626cc87468fc069ecdedf2d92a.tar.gz
rtmux-67d2335130295f626cc87468fc069ecdedf2d92a.tar.bz2
rtmux-67d2335130295f626cc87468fc069ecdedf2d92a.zip
Fix a couple of argument types.
-rw-r--r--cmd-show-messages.c4
-rw-r--r--utf8.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd-show-messages.c b/cmd-show-messages.c
index bc9fc0db..e0b72b9a 100644
--- a/cmd-show-messages.c
+++ b/cmd-show-messages.c
@@ -81,8 +81,8 @@ cmd_show_messages_jobs(struct cmdq_item *item, int blank)
cmdq_print(item, "%s", "");
blank = 0;
}
- cmdq_print(item, "Job %u: %s [fd=%d, pid=%d, status=%d]",
- n, job->cmd, job->fd, job->pid, job->status);
+ cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",
+ n, job->cmd, job->fd, (long)job->pid, job->status);
n++;
}
return (n != 0);
diff --git a/utf8.c b/utf8.c
index ea8c99a2..ac85863a 100644
--- a/utf8.c
+++ b/utf8.c
@@ -112,7 +112,7 @@ utf8_width(wchar_t wc)
width = wcwidth(wc);
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 (width);