aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-07-17 20:07:33 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-07-17 20:07:33 +0000
commit8fcc494e64fd0c3d41c6b1d8abd4843c710b03f8 (patch)
treec16e469b455ec3a2c9d865f8430feecbbaaf54f4 /xmlIO.c
parentf06a3d8b53686e215eb3302eea32436e8c3f693f (diff)
downloadandroid_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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlIO.c b/xmlIO.c
index db245d05..a7269c74 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -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;
}