diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-02-15 17:41:10 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-02-15 17:41:10 +0000 |
commit | a86510201094e44bac2952de710f4a6ded402405 (patch) | |
tree | 3c9624c3962dcf8f87f65195590b42e635ab7528 /uisimulator | |
parent | 8cc69d8080ac707b6b204282bb62f9351b213dbb (diff) | |
download | rockbox-a86510201094e44bac2952de710f4a6ded402405.tar.gz rockbox-a86510201094e44bac2952de710f4a6ded402405.zip |
fix to not use the redefined calls within the redefined calls themselves,
as Mike Holden reported
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3275 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/x11/io.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c index ebc0961404..2ead168b5e 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c | |||
@@ -105,14 +105,14 @@ int x11_open(char *name, int opts) | |||
105 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); | 105 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); |
106 | 106 | ||
107 | debugf("We open the real file '%s'\n", buffer); | 107 | debugf("We open the real file '%s'\n", buffer); |
108 | return open(buffer, opts); | 108 | return (open)(buffer, opts); |
109 | } | 109 | } |
110 | return open(name, opts); | 110 | return (open)(name, opts); |
111 | } | 111 | } |
112 | 112 | ||
113 | int x11_close(int fd) | 113 | int x11_close(int fd) |
114 | { | 114 | { |
115 | return close(fd); | 115 | return (close)(fd); |
116 | } | 116 | } |
117 | 117 | ||
118 | int x11_creat(char *name, int mode) | 118 | int x11_creat(char *name, int mode) |
@@ -123,9 +123,9 @@ int x11_creat(char *name, int mode) | |||
123 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); | 123 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); |
124 | 124 | ||
125 | debugf("We create the real file '%s'\n", buffer); | 125 | debugf("We create the real file '%s'\n", buffer); |
126 | return creat(buffer, mode); | 126 | return (creat)(buffer, mode); |
127 | } | 127 | } |
128 | return creat(name, mode); | 128 | return (creat)(name, mode); |
129 | } | 129 | } |
130 | 130 | ||
131 | int x11_remove(char *name) | 131 | int x11_remove(char *name) |
@@ -136,9 +136,9 @@ int x11_remove(char *name) | |||
136 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); | 136 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); |
137 | 137 | ||
138 | debugf("We remove the real file '%s'\n", buffer); | 138 | debugf("We remove the real file '%s'\n", buffer); |
139 | return remove(buffer); | 139 | return (remove)(buffer); |
140 | } | 140 | } |
141 | return remove(name); | 141 | return (remove)(name); |
142 | } | 142 | } |
143 | 143 | ||
144 | int x11_rename(char *oldpath, char* newpath) | 144 | int x11_rename(char *oldpath, char* newpath) |
@@ -151,7 +151,7 @@ int x11_rename(char *oldpath, char* newpath) | |||
151 | sprintf(buffer2, "%s%s", SIMULATOR_ARCHOS_ROOT, newpath); | 151 | sprintf(buffer2, "%s%s", SIMULATOR_ARCHOS_ROOT, newpath); |
152 | 152 | ||
153 | debugf("We rename the real file '%s' to '%s'\n", buffer1, buffer2); | 153 | debugf("We rename the real file '%s' to '%s'\n", buffer1, buffer2); |
154 | return rename(buffer1, buffer2); | 154 | return (rename)(buffer1, buffer2); |
155 | } | 155 | } |
156 | return -1; | 156 | return -1; |
157 | } | 157 | } |