summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-29 23:36:11 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-29 23:36:11 -0400
commitf3d60aea34de60c4371c04fa1b8482ca71a64b53 (patch)
treeda90e55f804b4d9a9e93e48ff21416f9182801ca /firmware/target
parent17a007bc60c69d6ea471a96a465e04ba4ac2d00f (diff)
downloadrockbox-f3d60aea34de60c4371c04fa1b8482ca71a64b53.tar.gz
rockbox-f3d60aea34de60c4371c04fa1b8482ca71a64b53.zip
Hopefully fix most of the errors and warnings from the last push
Change-Id: I1a466b2d55f120796910039a0296ca324c58e891
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/filesystem-app.c4
-rw-r--r--firmware/target/hosted/filesystem-hosted.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c
index 7ef8d3109b..a4730a07d9 100644
--- a/firmware/target/hosted/filesystem-app.c
+++ b/firmware/target/hosted/filesystem-app.c
@@ -69,7 +69,7 @@ static const char *handle_special_links(const char* link, unsigned flags,
69{ 69{
70 (void) flags; 70 (void) flags;
71 char vol_string[VOL_MAX_LEN + 1]; 71 char vol_string[VOL_MAX_LEN + 1];
72 get_volume_name(-1, vol_string); 72 int len = get_volume_name(-1, vol_string);
73 73
74 /* link might be passed with or without HOME_DIR expanded. To handle 74 /* link might be passed with or without HOME_DIR expanded. To handle
75 * both perform substring matching (VOL_NAMES is unique enough) */ 75 * both perform substring matching (VOL_NAMES is unique enough) */
@@ -354,7 +354,7 @@ DIR * app_opendir(const char *dirname)
354 354
355#ifdef HAVE_MULTIDRIVE 355#ifdef HAVE_MULTIDRIVE
356 this->volumes_returned = INT_MAX; /* assume NOT $HOME */ 356 this->volumes_returned = INT_MAX; /* assume NOT $HOME */
357 if (rbhome_fildes >= 0 && os_samefile(rbhome_fildes, fd) > 0) 357 if (rbhome_fildes >= 0 && os_fsamefile(rbhome_fildes, this->osfd) > 0)
358 this->volumes_returned = 0; /* there's no place like $HOME */ 358 this->volumes_returned = 0; /* there's no place like $HOME */
359#endif /* HAVE_MULTIDRIVE */ 359#endif /* HAVE_MULTIDRIVE */
360 360
diff --git a/firmware/target/hosted/filesystem-hosted.h b/firmware/target/hosted/filesystem-hosted.h
index 3d979eb19d..5147ef6db6 100644
--- a/firmware/target/hosted/filesystem-hosted.h
+++ b/firmware/target/hosted/filesystem-hosted.h
@@ -63,6 +63,7 @@ bool os_file_exists(const char *ospath);
63#define _FILESYSTEM_HOSTED__DIR_H_ 63#define _FILESYSTEM_HOSTED__DIR_H_
64 64
65#ifndef OSFUNCTIONS_DECLARED 65#ifndef OSFUNCTIONS_DECLARED
66int os_opendirfd(const char *osdirname);
66int os_opendir_and_fd(const char *osdirname, OS_DIR_T **osdirpp, 67int os_opendir_and_fd(const char *osdirname, OS_DIR_T **osdirpp,
67 int *osfdp); 68 int *osfdp);
68 69