X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpolyominoes.c;h=faa7698f344b80c586aea5af7bc7049d586f79d3;hp=3ed5227ba54bf1b41459f9789fde89b389e2f8ab;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=96a411663168b0ba5432b407a83be55f3df0c802 diff --git a/hacks/polyominoes.c b/hacks/polyominoes.c index 3ed5227b..faa7698f 100644 --- a/hacks/polyominoes.c +++ b/hacks/polyominoes.c @@ -58,20 +58,20 @@ static Bool plain; static XrmOptionDescRec opts[] = { - {(char *) "-identical", (char *) ".polyominoes.identical", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+identical", (char *) ".polyominoes.identical", XrmoptionNoArg, (caddr_t) "off"}, - {(char *) "-plain", (char *) ".polyominoes.plain", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+plain", (char *) ".polyominoes.plain", XrmoptionNoArg, (caddr_t) "off"} + {"-identical", ".polyominoes.identical", XrmoptionNoArg, "on"}, + {"+identical", ".polyominoes.identical", XrmoptionNoArg, "off"}, + {"-plain", ".polyominoes.plain", XrmoptionNoArg, "on"}, + {"+plain", ".polyominoes.plain", XrmoptionNoArg, "off"} }; static argtype vars[] = { - {(caddr_t *) &identical, (char *) "identical", (char *) "Identical", (char *) DEF_IDENTICAL, t_Bool}, - {(caddr_t *) & plain, (char *) "plain", (char *) "Plain", (char *) DEF_PLAIN, t_Bool} + {&identical, "identical", "Identical", DEF_IDENTICAL, t_Bool}, + {&plain, "plain", "Plain", DEF_PLAIN, t_Bool} }; static OptionStruct desc[] = { - {(char *) "-/+identical", (char *) "turn on/off puzzles where the polyomino pieces are identical"}, - {(char *) "-/+plain", (char *) "turn on/off plain pieces"} + {"-/+identical", "turn on/off puzzles where the polyomino pieces are identical"}, + {"-/+plain", "turn on/off plain pieces"} }; ModeSpecOpt polyominoes_opts =