From 7ef57898311fc0b3901408c266ce3a13307f9e7c Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 20 Jan 2014 19:52:46 +0000 Subject: Use SEEK_SET instead of hardcoded 0. ok millert@ --- usr.sbin/lpr/lpd/printjob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/lpr/lpd') diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 8c70e66db09..cfbea5ba777 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.50 2014/01/20 19:51:46 tobias Exp $ */ +/* $OpenBSD: printjob.c,v 1.51 2014/01/20 19:52:45 tobias Exp $ */ /* $NetBSD: printjob.c,v 1.31 2002/01/21 14:42:30 wiz Exp $ */ /* @@ -229,7 +229,7 @@ again: fdev = (dev_t)-1; fino = (ino_t)-1; - (void)lseek(lfd, pidoff, 0); + (void)lseek(lfd, pidoff, SEEK_SET); if ((i = snprintf(line, sizeof(line), "%s\n", q->q_name)) >= sizeof(line) || i == -1) i = sizeof(line) - 1; /* can't happen */ -- cgit v1.2.3