summaryrefslogtreecommitdiff
path: root/src/AsciiSrc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-05 18:01:17 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-07 21:59:02 -0800
commit3b0de83ef4f2cdb0bfa52aba9092b56a1a1dc6ea (patch)
tree634597b57c29f97b26df6fc8b963c4a97939d3e4 /src/AsciiSrc.c
parentebaa906159a73eeb001506a7787f5128f17af61a (diff)
downloadxorg-lib-libXaw-3b0de83ef4f2cdb0bfa52aba9092b56a1a1dc6ea.tar.gz
Just use C89 size_t instead of rolling our own Size_t
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/AsciiSrc.c')
-rw-r--r--src/AsciiSrc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c
index a37b6a1..87efdf2 100644
--- a/src/AsciiSrc.c
+++ b/src/AsciiSrc.c
@@ -59,14 +59,6 @@ in this Software without prior written authorization from The Open Group.
#include <X11/Xaw/AsciiText.h> /* for Widget Classes */
#endif
-#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
-
#define MAGIC_VALUE ((XawTextPosition)-1)
#define streq(a, b) (strcmp((a), (b)) == 0)
@@ -1525,8 +1517,8 @@ LoadPieces(AsciiSrcObject src, FILE *file, char *string)
fseek(file, 0, 0);
while (left < src->ascii_src.length) {
ptr = XtMalloc((unsigned)src->ascii_src.piece_size);
- if ((len = fread(ptr, (Size_t)sizeof(unsigned char),
- (Size_t)src->ascii_src.piece_size, file)) < 0)
+ if ((len = fread(ptr, sizeof(unsigned char),
+ (size_t)src->ascii_src.piece_size, file)) < 0)
XtErrorMsg("readError", "asciiSourceCreate", "XawError",
"fread returned error.", NULL, NULL);
piece = AllocNewPiece(src, piece);