$OpenBSD: patch-src_wallpaper_c,v 1.3 2018/03/17 08:30:09 landry Exp $

Fix for old compilers

Index: src/wallpaper.c
--- src/wallpaper.c.orig
+++ src/wallpaper.c
@@ -434,13 +434,14 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int cent
 				FILE *fp;
 				char *path;
 				struct stat s;
+				int i;
 				path = estrjoin("/", home, ".fehbg", NULL);
 				if ((fp = fopen(path, "w")) == NULL) {
 					weprintf("Can't write to %s", path);
 				} else {
 					fputs("#!/bin/sh\n", fp);
 					if (use_filelist) {
-						for (int i = 0; i < cmdargc; i++) {
+						for (i = 0; i < cmdargc; i++) {
 							fputs(shell_escape(cmdargv[i]), fp);
 							fputc(' ', fp);
 						}
