--- embedaddon/mpd/src/main.c 2016/11/01 09:56:12 1.1.1.3 +++ embedaddon/mpd/src/main.c 2021/03/17 00:39:23 1.1.1.4 @@ -106,14 +106,14 @@ #ifdef PHYSTYPE_PPTP int gPPTPto = 10; - int gPPTPtunlimit = 100; + unsigned gPPTPtunlimit = 100; #endif #ifdef PHYSTYPE_L2TP int gL2TPto = 10; #if ((__FreeBSD_version > 603100 && __FreeBSD_version < 700000) || __FreeBSD_version >= 700055) - int gL2TPtunlimit = 100; + unsigned gL2TPtunlimit = 100; #else - int gL2TPtunlimit = 10; + unsigned gL2TPtunlimit = 10; #endif #endif int gChildren = 0; /* Current number of children links */ @@ -174,7 +174,7 @@ main(int ac, char *av[]) int ret, k; char *args[MAX_ARGS]; Context c; - PhysType pt; + const struct phystype *pt; gPid = getpid(); @@ -325,6 +325,7 @@ ConfigRead(int type, void *arg) Context c = (Context)arg; int err; + (void)type; /* Read startup configuration section */ err = ReadFile(gConfigFile, STARTUP_CONF, DoCommand, c); @@ -374,7 +375,7 @@ DoExit(int code) Bund b; Rep r; Link l; - PhysType pt; + const struct phystype *pt; int k; gShutdownInProgress=1; @@ -448,6 +449,8 @@ SignalHandler(int type, void *arg) { u_char sig; + (void)type; + (void)arg; read(gSignalPipe[0], &sig, sizeof(sig)); switch(sig) {