X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fgrav.c;h=961afe4374c7b35de31faff2e7f7b329901df736;hp=aec897d559de8a0e7fb4d6c3a05f2001fd41830e;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=96a411663168b0ba5432b407a83be55f3df0c802 diff --git a/hacks/grav.c b/hacks/grav.c index aec897d5..961afe43 100644 --- a/hacks/grav.c +++ b/hacks/grav.c @@ -53,20 +53,20 @@ static Bool trail; static XrmOptionDescRec opts[] = { - {(char *) "-decay", (char *) ".grav.decay", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+decay", (char *) ".grav.decay", XrmoptionNoArg, (caddr_t) "off"}, - {(char *) "-trail", (char *) ".grav.trail", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+trail", (char *) ".grav.trail", XrmoptionNoArg, (caddr_t) "off"} + {"-decay", ".grav.decay", XrmoptionNoArg, "on"}, + {"+decay", ".grav.decay", XrmoptionNoArg, "off"}, + {"-trail", ".grav.trail", XrmoptionNoArg, "on"}, + {"+trail", ".grav.trail", XrmoptionNoArg, "off"} }; static argtype vars[] = { - {(caddr_t *) & decay, (char *) "decay", (char *) "Decay", (char *) DEF_DECAY, t_Bool}, - {(caddr_t *) & trail, (char *) "trail", (char *) "Trail", (char *) DEF_TRAIL, t_Bool} + {&decay, "decay", "Decay", DEF_DECAY, t_Bool}, + {&trail, "trail", "Trail", DEF_TRAIL, t_Bool} }; static OptionStruct desc[] = { - {(char *) "-/+decay", (char *) "turn on/off decaying orbits"}, - {(char *) "-/+trail", (char *) "turn on/off trail dots"} + {"-/+decay", "turn on/off decaying orbits"}, + {"-/+trail", "turn on/off trail dots"} }; ModeSpecOpt grav_opts =