--- embedaddon/mpd/src/rep.c 2013/07/22 08:44:29 1.1.1.1 +++ embedaddon/mpd/src/rep.c 2021/03/17 00:39:23 1.1.1.2 @@ -203,11 +203,13 @@ RepGetHook(Link l, char *path, char *hook) */ int -RepCommand(Context ctx, int ac, char *av[], void *arg) +RepCommand(Context ctx, int ac, const char *const av[], const void *arg) { Rep r; int k; + (void)arg; + if (ac > 1) return (-1); @@ -327,10 +329,12 @@ RepShutdown(Rep r) */ int -RepStat(Context ctx, int ac, char *av[], void *arg) +RepStat(Context ctx, int ac, const char *const av[], const void *arg) { Rep r; + (void)arg; + /* Find repeater they're talking about */ switch (ac) { case 0: @@ -377,7 +381,7 @@ RepShowLinks(Context ctx, Rep r) */ Rep -RepFind(char *name) +RepFind(const char *name) { int k;