X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ft3d.c;h=b569c7511fc04dcfa7172d81506e5c728df09da3;hp=58ec47f2bf01ae96dfe8b35326ece537e09350b8;hb=551b3de3f619c04c2dd1971ee9b3f02e270c28c9;hpb=a719ec12b8b2563112366a8ac3196816fd64d2c7 diff --git a/hacks/t3d.c b/hacks/t3d.c index 58ec47f2..b569c751 100644 --- a/hacks/t3d.c +++ b/hacks/t3d.c @@ -209,7 +209,7 @@ initColor (double r, double g, double b) { int n,n1; unsigned long pixels[12]; - long dummy; + unsigned long dummy; cmap = xgwa.colormap; @@ -293,7 +293,7 @@ initialize (void) if (s && *s) { double hh, ss, vv; - if (3 == sscanf (s, "%lf %lf %lf", &hh, &ss, &vv, &dummy)) { + if (3 == sscanf (s, "%lf %lf %lf %c", &hh, &ss, &vv, &dummy)) { hue = hh, sat = ss, val = vv; hsv2rgb(hue,sat,val,&r,&g,&b); } @@ -816,7 +816,8 @@ screenhack (Display *d, Window w) { Window junk_win,in_win; - int px,py,junk,kb/*,wai*/; + int px,py,junk/*,wai*/; + unsigned int kb; /* int act,act1,tc;*/ double vnorm; /* double var=0.0; */