summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/env.c
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/cron/env.c
parente617d3130f4ee9ff3df5781cfc30d5a8c8d9a52c (diff)
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'usr.sbin/cron/env.c')
-rw-r--r--usr.sbin/cron/env.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/env.c b/usr.sbin/cron/env.c
index 018f2841f46..50dcb9ba962 100644
--- a/usr.sbin/cron/env.c
+++ b/usr.sbin/cron/env.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: env.c,v 1.19 2007/09/02 15:19:38 deraadt Exp $ */
+/* $OpenBSD: env.c,v 1.20 2007/09/10 14:29:53 tobias Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -22,7 +22,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: env.c,v 1.19 2007/09/02 15:19:38 deraadt Exp $";
+static char const rcsid[] = "$OpenBSD: env.c,v 1.20 2007/09/10 14:29:53 tobias Exp $";
#endif
#include "cron.h"
@@ -209,7 +209,7 @@ load_env(char *envstr, FILE *f) {
}
if (state != FINI && !(state == VALUE && !quotechar)) {
Debug(DPARS, ("load_env, not an env var, state = %d\n", state))
- fseek(f, filepos, 0);
+ fseek(f, filepos, SEEK_SET);
Set_LineNum(fileline);
return (FALSE);
}