diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:15 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:15 +0000 |
| commit | e0637255341a165e1e186e6f2836c614f0121c8b (patch) | |
| tree | 248fb995e73cfb4b623a5d041e3e28b311fbafde /firmware/include | |
| parent | 38da400e58b78f0fd399bdb8e52e1ba63aca75a7 (diff) | |
| download | rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.zip rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.tar.gz rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.tar.bz2 rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.tar.xz | |
Dircache: Return the size of the result string in dircache_copy_path() so that callers don't need to call strlen on it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
| -rw-r--r-- | firmware/include/dircache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 49e804c..716d1fb 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h @@ -100,7 +100,7 @@ int dircache_get_reserve_used(void); int dircache_get_build_ticks(void); void dircache_disable(void); const struct dircache_entry *dircache_get_entry_ptr(const char *filename); -void dircache_copy_path(const struct dircache_entry *entry, char *buf, int size); +size_t dircache_copy_path(const struct dircache_entry *entry, char *buf, size_t size); void dircache_bind(int fd, const char *path); void dircache_update_filesize(int fd, long newsize, long startcluster); |