File xlockmore-undefined-code.patch of Package xlockmore

--- modes/fadeplot.c
+++ modes/fadeplot.c
@@ -207,11 +207,11 @@
 	if ((fp->temps % (fp->angles / 2)) == 0) {
 		fp->temps = fp->temps % fp->angles * 5;
 		if ((fp->temps % (fp->angles)) == 0)
-			fp->speed.y = (fp->speed.y++) % 30 + 1;
+			fp->speed.y = (fp->speed.y + 1) % 30 + 1;
 		if ((fp->temps % (fp->angles * 2)) == 0)
 			fp->speed.x = (fp->speed.x) % 20;
 		if ((fp->temps % (fp->angles * 3)) == 0)
-			fp->step.y = (fp->step.y++) % 2 + 1;
+			fp->step.y = (fp->step.y + 1) % 2 + 1;
 		MI_CLEARWINDOWCOLORMAPFAST(mi, MI_GC(mi), MI_BLACK_PIXEL(mi));
 	}
 }
--- modes/swarm.c
+++ modes/swarm.c
@@ -339,7 +339,7 @@
 		sp->yv[NRAND(sp->beecount)] += balance_rand(3);
 	}
 	/* <=- Bees -=> */
-	sp->tick = ++(sp->tick) % (sp->taillen);
+	sp->tick = (sp->tick + 1) % (sp->taillen);
 	prev = (sp->tick) ? sp->tick - 1 : sp->taillen - 1;
 	if (sp->tick == sp->taillen - 1)
 		sp->rolloverflag = 1;
openSUSE Build Service is sponsored by