summaryrefslogtreecommitdiff
path: root/gnu/libexec
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1994-04-01 03:05:34 +0000
committercgd <cgd@NetBSD.org>1994-04-01 03:05:34 +0000
commit6c3c466fe72da5abf9ea635580184dbb41f0e332 (patch)
treec03b3b893363f7e2f2c5481ca053761146023d61 /gnu/libexec
parentc386dd46468856796047fe936fb8123c30eee146 (diff)
off_t stuff
Diffstat (limited to 'gnu/libexec')
-rw-r--r--gnu/libexec/uucp/common_sources/uucp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/libexec/uucp/common_sources/uucp.h b/gnu/libexec/uucp/common_sources/uucp.h
index 8df3ec4c3e7..1a4f696ccd5 100644
--- a/gnu/libexec/uucp/common_sources/uucp.h
+++ b/gnu/libexec/uucp/common_sources/uucp.h
@@ -241,11 +241,11 @@ typedef int openfile_t;
#define ffilereaderror(e, c) ((c) < 0)
#define cfilewrite(e, z, c) write ((e), (z), (c))
#ifdef SEEK_SET
-#define ffileseek(e, i) (lseek ((e), (long) i, SEEK_SET) >= 0)
-#define ffilerewind(e) (lseek ((e), (long) 0, SEEK_SET) >= 0)
+#define ffileseek(e, i) (lseek ((e), (off_t) i, SEEK_SET) >= 0)
+#define ffilerewind(e) (lseek ((e), (off_t) 0, SEEK_SET) >= 0)
#else
-#define ffileseek(e, i) (lseek ((e), (long) i, 0) >= 0)
-#define ffilerewind(e) (lseek ((e), (long) 0, 0) >= 0)
+#define ffileseek(e, i) (lseek ((e), (off_t) i, 0) >= 0)
+#define ffilerewind(e) (lseek ((e), (off_t) 0, 0) >= 0)
#endif
#define ffileclose(e) (close (e) >= 0)