diff options
author | jhb <jhb@FreeBSD.org> | 2014-05-27 20:22:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-05-27 20:22:36 +0000 |
commit | c6cc2a05339e79ddbeeb5401c00343e3a81ac8e6 (patch) | |
tree | bb95f8087b2bbaa5fd1dfbb1c66d909a48e46e5c /usr.bin | |
parent | e77f26d29d2c229e263155fabcf9e28de37de481 (diff) | |
download | FreeBSD-src-c6cc2a05339e79ddbeeb5401c00343e3a81ac8e6.zip FreeBSD-src-c6cc2a05339e79ddbeeb5401c00343e3a81ac8e6.tar.gz |
Fix a couple of size_t != int warnings.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index cf4714c..3ed7a80 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -916,7 +916,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(int), int flags) argbuflen = cmdlen * 4; argbuf = (char *)malloc(argbuflen + 1); if (argbuf == NULL) { - warn("malloc(%d)", argbuflen + 1); + warn("malloc(%zd)", argbuflen + 1); free(cmdbuf); return NULL; } @@ -1023,7 +1023,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(int), int flags) thr_buf[0] = '\0'; else snprintf(thr_buf, sizeof(thr_buf), "%*d ", - sizeof(thr_buf) - 2, pp->ki_numthreads); + (int)(sizeof(thr_buf) - 2), pp->ki_numthreads); snprintf(fmt, sizeof(fmt), proc_fmt, pp->ki_pid, |