summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpd
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
commit4bb6947b738392d059ccec81a601802f2a3f67e1 (patch)
tree6a47a9a7c15a9808ef0d3524f9dd977949038843 /usr.sbin/lpr/lpd
parente617d3130f4ee9ff3df5781cfc30d5a8c8d9a52c (diff)
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r--usr.sbin/lpr/lpd/printjob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index 37ef6d775f9..5df200c0ca3 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printjob.c,v 1.43 2007/09/02 15:19:38 deraadt Exp $ */
+/* $OpenBSD: printjob.c,v 1.44 2007/09/10 14:29:53 tobias Exp $ */
/* $NetBSD: printjob.c,v 1.31 2002/01/21 14:42:30 wiz Exp $ */
/*
@@ -503,7 +503,7 @@ printit(char *file)
/* pass 2 */
pass2:
- fseek(cfp, 0L, 0);
+ fseek(cfp, 0L, SEEK_SET);
while (getline(cfp))
switch (line[0]) {
case 'L': /* identification line */
@@ -862,7 +862,7 @@ sendit(char *file)
/*
* pass 2
*/
- fseek(cfp, 0L, 0);
+ fseek(cfp, 0L, SEEK_SET);
while (getline(cfp))
if (line[0] == 'U' && strchr(line+1, '/') == 0)
(void)unlink(line+1);