[hackers] [sbase] tar: Use more conventional name for iterator || sin
commit 624bf64ac55182655d20c8a21afc6d313927908a
Author: sin <sin_AT_2f30.org>
Date: Thu Apr 23 15:43:30 2015 +0100
tar: Use more conventional name for iterator
diff --git a/tar.c b/tar.c
index 09a19cb..a7f3e45 100644
--- a/tar.c
+++ b/tar.c
_AT_@ -148,7 +148,7 @@ archive(const char *path)
struct header *h;
struct passwd *pw;
struct stat st;
- size_t chksum, x;
+ size_t chksum, i;
ssize_t l, r;
int fd = -1;
_AT_@ -198,8 +198,8 @@ archive(const char *path)
}
memset(h->chksum, ' ', sizeof(h->chksum));
- for (x = 0, chksum = 0; x < sizeof(*h); x++)
- chksum += b[x];
+ for (i = 0, chksum = 0; i < sizeof(*h); i++)
+ chksum += b[i];
putoctal(h->chksum, chksum, sizeof(h->chksum));
ewrite(tarfd, b, BLKSIZ);
Received on Thu Apr 23 2015 - 17:34:17 CEST
This archive was generated by hypermail 2.3.0
: Thu Apr 23 2015 - 17:36:15 CEST