Fix one more compile-time warning by renaming a local variable.
MFC after: 4 days
This commit is contained in:
parent
9e75a09e74
commit
ce0b09c3bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84697
@ -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]++;
|
||||
|
Loading…
Reference in New Issue
Block a user