diff options
author | gad <gad@FreeBSD.org> | 2001-10-09 00:38:40 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2001-10-09 00:38:40 +0000 |
commit | 87e28df717be473ca158f5352ac78a7c4488e93e (patch) | |
tree | f0c61252ec931692aeb2bb12fee0785e83b7eae0 /usr.sbin/lpr | |
parent | cfae1b56b88910ee5022ebc232322a8bd149b585 (diff) | |
download | FreeBSD-src-87e28df717be473ca158f5352ac78a7c4488e93e.zip FreeBSD-src-87e28df717be473ca158f5352ac78a7c4488e93e.tar.gz |
Fix one more compile-time warning by renaming a local variable.
MFC after: 4 days
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 9b7fc16..36b8c57 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -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]++; |