--- embedaddon/mpd/src/ng.c 2013/07/22 08:44:29 1.1.1.1 +++ embedaddon/mpd/src/ng.c 2021/03/17 00:39:23 1.1.1.2 @@ -45,7 +45,7 @@ static void NgClose(Link l); static void NgShutdown(Link l); static void NgStat(Context ctx); - static int NgSetCommand(Context ctx, int ac, char *av[], void *arg); + static int NgSetCommand(Context ctx, int ac, const char *const av[], const void *arg); static int NgIsSync(Link l); static int NgPeerAddr(Link l, void *buf, size_t buf_len); @@ -75,7 +75,7 @@ NgSetCommand, NULL, 2, (void *) SET_NODE }, { "hook {hook}", "Set hook to attach to", NgSetCommand, NULL, 2, (void *) SET_HOOK }, - { NULL }, + { NULL, NULL, NULL, NULL, 0, NULL }, }; /* @@ -197,7 +197,7 @@ NgStat(Context ctx) */ static int -NgSetCommand(Context ctx, int ac, char *av[], void *arg) +NgSetCommand(Context ctx, int ac, const char *const av[], const void *arg) { NgInfo const ng = (NgInfo) ctx->lnk->info; @@ -225,6 +225,7 @@ NgSetCommand(Context ctx, int ac, char *av[], void *ar static int NgIsSync(Link l) { + (void)l; return (1); }