diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 21:58:38 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 21:58:38 +0000 |
| commit | ae960a9ece0552d1982e56e26cc4c3932f51f2ab (patch) | |
| tree | cba0485d0dfa7febd5f751e2636c27919eb55551 /uisimulator | |
| parent | 8b813d0b99bcda14d6101ea38cc8ebb498281675 (diff) | |
| download | rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.zip rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.tar.gz rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.tar.bz2 rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.tar.xz | |
my take at fixing the simulator warnings by adding mode_t, size_t, ssize_t
and off_t
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
| -rw-r--r-- | uisimulator/x11/file.h | 2 | ||||
| -rw-r--r-- | uisimulator/x11/io.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/x11/file.h b/uisimulator/x11/file.h index 7212692..b30167e 100644 --- a/uisimulator/x11/file.h +++ b/uisimulator/x11/file.h @@ -26,7 +26,7 @@ int x11_open(const char *name, int opts); int x11_close(int fd); int x11_filesize(int fd); -int x11_creat(char *name, int mode); +int x11_creat(const char *name, mode_t mode); int x11_remove(char *name); int x11_rename(char *oldpath, char *newpath); diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c index 6fc82cc..14d2bfa 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c @@ -120,7 +120,7 @@ int x11_close(int fd) return (close)(fd); } -int x11_creat(char *name, int mode) +int x11_creat(const char *name, mode_t mode) { char buffer[256]; /* sufficiently big */ (void)mode; |