From 6cc6e8b9c44beb4811b3d57c270632b84e380172 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 20 Apr 2004 11:08:07 +0000 Subject: [PATCH] Removed some X11 simulator warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4524 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/dir.h | 2 +- uisimulator/x11/io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uisimulator/x11/dir.h b/uisimulator/x11/dir.h index 662ed17359..48696c23b8 100644 --- a/uisimulator/x11/dir.h +++ b/uisimulator/x11/dir.h @@ -29,7 +29,7 @@ typedef void DIR; typedef void * MYDIR; -extern MYDIR *x11_opendir(char *name); +extern MYDIR *x11_opendir(const char *name); extern struct x11_dirent* x11_readdir(MYDIR* dir); extern int x11_closedir(MYDIR *dir); extern int x11_mkdir(char *name, int mode); diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c index faccc826a7..d4d2714026 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c @@ -47,7 +47,7 @@ struct mydir { typedef struct mydir MYDIR; -MYDIR *x11_opendir(char *name) +MYDIR *x11_opendir(const char *name) { char buffer[256]; /* sufficiently big */ DIR *dir;