summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/lpr/lpr/lpr.c6
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]++;
OpenPOWER on IntegriCloud