X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fglknots.c;h=47266ef7072added4d30c3b67912f523a211c11a;hb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38;hp=ab514646646c18378f8c045dd0557fb903a3306f;hpb=6a1da724858673ac40aa13a9612340d8bed8c7b9;p=xscreensaver diff --git a/hacks/glx/glknots.c b/hacks/glx/glknots.c index ab514646..47266ef7 100644 --- a/hacks/glx/glknots.c +++ b/hacks/glx/glknots.c @@ -80,7 +80,7 @@ static char *do_spin; static GLfloat speed; static Bool do_wander; static GLfloat thickness; -static int segments; +static unsigned int segments; static int duration; static XrmOptionDescRec opts[] = { @@ -95,12 +95,12 @@ static XrmOptionDescRec opts[] = { }; static argtype vars[] = { - {(caddr_t *) &do_spin, "spin", "Spin", DEF_SPIN, t_String}, - {(caddr_t *) &do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, - {(caddr_t *) &speed, "speed", "Speed", DEF_SPEED, t_Float}, - {(caddr_t *) &thickness, "thickness", "Thickness", DEF_THICKNESS, t_Float}, - {(caddr_t *) &segments, "segments", "Segments", DEF_SEGMENTS, t_Int}, - {(caddr_t *) &duration, "duration", "Duration", DEF_DURATION, t_Int}, + {&do_spin, "spin", "Spin", DEF_SPIN, t_String}, + {&do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, + {&speed, "speed", "Speed", DEF_SPEED, t_Float}, + {&thickness, "thickness", "Thickness", DEF_THICKNESS, t_Float}, + {&segments, "segments", "Segments", DEF_SEGMENTS, t_Int}, + {&duration, "duration", "Duration", DEF_DURATION, t_Int}, }; ModeSpecOpt sws_opts = {countof(opts), opts, countof(vars), vars, NULL}; @@ -114,7 +114,7 @@ make_knot (ModeInfo *mi) GLfloat diam = (4 * thickness); int faces = (wire ? 3 : 6); - int i; + unsigned int i; double x, y, z, ox=0, oy=0, oz=0; double mu;