mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix one more compile-time warning by renaming a local variable.
MFC after: 4 days
This commit is contained in:
parent
9e75a09e74
commit
ce0b09c3bc
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue