diff options
author | Pádraig Brady <P@draigBrady.com> | 2017-06-17 14:54:23 -0700 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2017-06-17 15:51:59 -0700 |
commit | 1379bdc65b76471a344b2affc8f1e9b6188d1092 (patch) | |
tree | ddae4e04a297f46d5205365bd21f96fb23baf8b1 /src/rm.c | |
parent | 18f6b22fe1eb4447b26fafd3bed1e6bb23c9adc2 (diff) | |
download | coreutils-1379bdc65b76471a344b2affc8f1e9b6188d1092.tar.gz |
maint: use C99 for loop initial declarations where possible
This results in a net reduction of about 120 lines.
Diffstat (limited to 'src/rm.c')
-rw-r--r-- | src/rm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -105,9 +105,8 @@ diagnose_leading_hyphen (int argc, char **argv) { /* OPTIND is unreliable, so iterate through the arguments looking for a file name that looks like an option. */ - int i; - for (i = 1; i < argc; i++) + for (int i = 1; i < argc; i++) { char const *arg = argv[i]; struct stat st; |