shithub: trueawk

Download patch

ref: d9ad01cd66f6f126bb86a12016e5f4408e35b0c6
parent: f38a02c8be0c605467cbff2c953a8d1c2cebdebc
parent: 14d0e87c4ea81f4bcea409155e3e999a30d32862
author: ozan yigit <ozan.yigit@gmail.com>
date: Mon Oct 30 15:52:30 EDT 2023

todd miller's code cleanup

--- a/run.c
+++ b/run.c
@@ -1349,7 +1349,7 @@
 			int i;
 
 			if (ljust) { // print one char from t, then pad blanks
-				for (int i = 0; i < n; i++)
+				for (i = 0; i < n; i++)
 					*p++ = t[i];
 				for (i = 0; i < pad; i++) {
 					//printf(" ");
@@ -1360,7 +1360,7 @@
 					//printf(" ");
 					*p++ = ' ';
 				}
-				for (int i = 0; i < n; i++)
+				for (i = 0; i < n; i++)
 					*p++ = t[i];
 			}
 			*p = 0;
--