Fix one more compile-time warning by renaming a local variable.

MFC after:	4 days
This commit is contained in:
gad 2001-10-09 00:38:40 +00:00
parent 1abea1fc0f
commit 658dca202f

View File

@ -496,11 +496,11 @@ main(int argc, char *argv[])
*/
seteuid(euid);
if ((tfd = open(tfname, O_RDWR)) >= 0) {
char c;
char touch_c;
if (read(tfd, &c, 1) == 1 &&
if (read(tfd, &touch_c, 1) == 1 &&
lseek(tfd, (off_t)0, 0) == 0 &&
write(tfd, &c, 1) != 1) {
write(tfd, &touch_c, 1) != 1) {
printf("%s: cannot touch %s\n", progname,
tfname);
tfname[inchar]++;