xroach problems.

Earle Ake ake at dayton.saic.com
Sat Mar 30 12:51:25 AEST 1991


In article <1991Mar30.021403.7505 at comp.vuw.ac.nz>, Edmund.Stephen-Smith at comp.vuw.ac.nz (Edmund Stephen-Smith) writes:

> Diff follows (ie. delete the five lines with minus signs at the front),
> 
> Ed.
> 
> 
> *** xroach.c~   Sat Mar 30 13:51:26 1991
> --- xroach.c    Sat Mar 30 13:55:28 1991
> ***************
> *** 407,417 ****
>         if (roach->intX >= 0) {
>             XClearArea(display, rootWin, roach->intX, roach->intY,
>                 roach->rp->width, roach->rp->height, False);
> -       }
> -     }
> -
> -     for (rx=0; rx<curRoaches; rx++) {
> -       roach = &roaches[rx];
> 
>         if (!roach->hidden) {
>             roach->intX = roach->x;
> --- 407,412 ----


	I think the patch should have been:


*** xroach.c~   Sat Mar 30 13:51:26 1991
--- xroach.c    Sat Mar 30 13:55:28 1991
***************
*** 407,417 ****
        if (roach->intX >= 0) {
            XClearArea(display, rootWin, roach->intX, roach->intY,
                roach->rp->width, roach->rp->height, False);
        }
-     }
-
-     for (rx=0; rx<curRoaches; rx++) {
-       roach = &roaches[rx];

        if (!roach->hidden) {
            roach->intX = roach->x;
--- 407,413 ----

	You still need the "}" in 410 to close off the if statement above it.

Earle
_____________________________________________________________________________
             ____ ____    ___
Earle Ake   /___ /___/ / /     Science Applications International Corporation
           ____//   / / /__                 Dayton, Ohio
-----------------------------------------------------------------------------
Internet: ake at dayton.saic.com        uucp: dayvb!ake         SPAN: 28284::ake



More information about the Comp.sources.bugs mailing list