--- embedaddon/mpd/src/mbuf.c 2019/10/22 13:49:55 1.1.1.2 +++ embedaddon/mpd/src/mbuf.c 2021/03/17 00:39:23 1.1.1.3 @@ -313,7 +313,7 @@ mbsplit(Mbuf bp, int cnt) if (!bp) return (NULL); - if (MBLEN(bp) <= cnt) + if ((int)MBLEN(bp) <= cnt) return (NULL); nbp = mballoc(bp->cnt - cnt); @@ -329,12 +329,16 @@ mbsplit(Mbuf bp, int cnt) */ 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; u_int i; u_int total_allocs = 0; u_int total_bytes = 0; + + (void)ac; + (void)av; + (void)arg; if (typed_mem_usage(&stats)) Error("typed_mem_usage() error");