summaryrefslogtreecommitdiff
path: root/lib/libXaw/src/MultiSrc.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2015-05-10 09:24:45 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2015-05-10 09:24:45 +0000
commitddef0373972648851b0de470889682fb6d6c025a (patch)
treeb24866d2d660e605a081797baee5bfa164cb4794 /lib/libXaw/src/MultiSrc.c
parent12e4d6a4e45c44cb69d29f396fba116716414b97 (diff)
Update to libXaw 1.0.13
Diffstat (limited to 'lib/libXaw/src/MultiSrc.c')
-rw-r--r--lib/libXaw/src/MultiSrc.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/libXaw/src/MultiSrc.c b/lib/libXaw/src/MultiSrc.c
index efa08b081..15bdaf8c7 100644
--- a/lib/libXaw/src/MultiSrc.c
+++ b/lib/libXaw/src/MultiSrc.c
@@ -78,14 +78,6 @@ in this Software without prior written authorization from The Open Group.
#define MAGIC_VALUE ((XawTextPosition)-1)
#define streq(a, b) (strcmp((a), (b)) == 0)
-#ifdef X_NOT_POSIX
-#define Off_t long
-#define Size_t unsigned int
-#else
-#define Off_t off_t
-#define Size_t size_t
-#endif
-
/*
* Class Methods
@@ -1329,10 +1321,10 @@ LoadPieces(MultiSrcObject src, FILE *file, char *string)
if (src->multi_src.length != 0) {
temp_mb_holder =
XtMalloc((src->multi_src.length + 1) * sizeof(unsigned char));
- fseek(file, 0, 0);
+ fseek(file, 0, SEEK_SET);
src->multi_src.length = fread(temp_mb_holder,
- (Size_t)sizeof(unsigned char),
- (Size_t)src->multi_src.length, file);
+ sizeof(unsigned char),
+ (size_t)src->multi_src.length, file);
if (src->multi_src.length <= 0)
XtAppErrorMsg(XtWidgetToApplicationContext ((Widget) src),
"readError", "multiSource", "XawError",