From 79798ff5f30dea7419f360e197763abb3b46259a Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 27 Aug 2010 10:33:09 +0000 Subject: Make getcwd match the posix variant, make get_current_file() behave similar to it and add a few sanity checks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27903 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/tree.h') diff --git a/apps/tree.h b/apps/tree.h index f3057e81e4..e33fee00d7 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -73,13 +73,13 @@ struct tree_context { void tree_drawlists(void); void tree_mem_init(void) INIT_ATTR; void tree_gui_init(void) INIT_ATTR; -void get_current_file(char* buffer, int buffer_len); +char* get_current_file(char* buffer, size_t buffer_len); void set_dirfilter(int l_dirfilter); void set_current_file(char *path); int rockbox_browse(const char *root, int dirfilter); bool create_playlist(void); void resume_directory(const char *dir); -char *getcwd(char *buf, int size); +char *getcwd(char *buf, size_t size); void reload_directory(void); bool check_rockboxdir(void); struct tree_context* tree_get_context(void); -- cgit v1.2.3