summaryrefslogtreecommitdiff
path: root/do_valgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'do_valgc.c')
-rw-r--r--do_valgc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/do_valgc.c b/do_valgc.c
index 68559f9..8edf764 100644
--- a/do_valgc.c
+++ b/do_valgc.c
@@ -44,10 +44,9 @@ InitGC(XParms xp, Parms p, int64_t reps)
void
DoChangeGC(XParms xp, Parms p, int64_t reps)
{
- int i;
XGCValues gcv;
- for (i = 0; i != reps; i++) {
+ for (int i = 0; i != reps; i++) {
gcv.foreground = xp->foreground;
XChangeGC(xp->d, xp->fggc, GCForeground , &gcv);
XDrawPoint(xp->d, win[0], xp->fggc, 5, 5);