version 1.1.1.2, 2019/10/22 13:49:55
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 313 mbsplit(Mbuf bp, int cnt)
|
Line 313 mbsplit(Mbuf bp, int cnt)
|
if (!bp) |
if (!bp) |
return (NULL); |
return (NULL); |
|
|
if (MBLEN(bp) <= cnt) | if ((int)MBLEN(bp) <= cnt) |
return (NULL); |
return (NULL); |
|
|
nbp = mballoc(bp->cnt - cnt); |
nbp = mballoc(bp->cnt - cnt); |
Line 329 mbsplit(Mbuf bp, int cnt)
|
Line 329 mbsplit(Mbuf bp, int cnt)
|
*/ |
*/ |
|
|
int |
int |
MemStat(Context ctx, int ac, char *av[], void *arg) | MemStat(Context ctx, int ac, const char *const av[], const void *arg) |
{ |
{ |
struct typed_mem_stats stats; |
struct typed_mem_stats stats; |
u_int i; |
u_int i; |
u_int total_allocs = 0; |
u_int total_allocs = 0; |
u_int total_bytes = 0; |
u_int total_bytes = 0; |
|
|
|
(void)ac; |
|
(void)av; |
|
(void)arg; |
|
|
if (typed_mem_usage(&stats)) |
if (typed_mem_usage(&stats)) |
Error("typed_mem_usage() error"); |
Error("typed_mem_usage() error"); |