X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;fp=gnushogi%2Fcommondsp.c;h=1950b42864273caf5edc3b65424aaa837204ee03;hp=5e87fb4869a19a1806148634ab27aa396653fe79;hb=1dbab3b37f5cda14a870156b1fa927ab1853266c;hpb=b8e35b1d447cee3c38bc8177ea8609360a88872d diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 5e87fb4..1950b42 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1420,16 +1420,15 @@ TestPSpeed(short(*f) (short side), unsigned j) static void SetOppTime(char *time) { - int m, t, sec; + int m, t; - sec = 0; t = (int)strtol(time, &time, 10); if (*time == ':') { time++; /* FIXME: sec is parsed but ignored */ - sec = (int)strtol(time, &time, 10); + (void)strtol(time, &time, 10); } m = (int)strtol(time, &time, 10); @@ -1453,16 +1452,15 @@ SetOppTime(char *time) static void SetMachineTime(char *time) { - int m, t, sec; + int m, t; - sec = 0; t = (int)strtol(time, &time, 10); if (*time == ':') { time++; /* FIXME: sec is parsed but ignored */ - sec = (int)strtol(time, &time, 10); + (void)strtol(time, &time, 10); } m = (int)strtol(time, &time, 10);