diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-07-17 20:07:33 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-07-17 20:07:33 +0000 |
commit | 8fcc494e64fd0c3d41c6b1d8abd4843c710b03f8 (patch) | |
tree | c16e469b455ec3a2c9d865f8430feecbbaaf54f4 /xmlIO.c | |
parent | f06a3d8b53686e215eb3302eea32436e8c3f693f (diff) | |
download | android_external_libxml2-8fcc494e64fd0c3d41c6b1d8abd4843c710b03f8.tar.gz android_external_libxml2-8fcc494e64fd0c3d41c6b1d8abd4843c710b03f8.tar.bz2 android_external_libxml2-8fcc494e64fd0c3d41c6b1d8abd4843c710b03f8.zip |
cleaned up some warning on the Alpha Daniel
* SAX.c xmlIO.c: cleaned up some warning on the Alpha
Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r-- | xmlIO.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -174,7 +174,7 @@ xmlNop(void) { */ static int xmlFdRead (void * context, char * buffer, int len) { - return(read((int) context, &buffer[0], len)); + return(read((int) (long) context, &buffer[0], len)); } /** @@ -189,7 +189,7 @@ xmlFdRead (void * context, char * buffer, int len) { */ static int xmlFdWrite (void * context, const char * buffer, int len) { - return(write((int) context, &buffer[0], len)); + return(write((int) (long) context, &buffer[0], len)); } /** @@ -200,7 +200,7 @@ xmlFdWrite (void * context, const char * buffer, int len) { */ static void xmlFdClose (void * context) { - close((int) context); + close((int) (long) context); } /** @@ -1088,7 +1088,7 @@ xmlParserInputBufferCreateFd(int fd, xmlCharEncoding enc) { ret = xmlAllocParserInputBuffer(enc); if (ret != NULL) { - ret->context = (void *) fd; + ret->context = (void *) (long) fd; ret->readcallback = xmlFdRead; ret->closecallback = xmlFdClose; } @@ -1143,7 +1143,7 @@ xmlOutputBufferCreateFd(int fd, xmlCharEncodingHandlerPtr encoder) { ret = xmlAllocOutputBuffer(encoder); if (ret != NULL) { - ret->context = (void *) fd; + ret->context = (void *) (long) fd; ret->writecallback = xmlFdWrite; ret->closecallback = xmlFdClose; } |