diff options
author | Max Kellermann <max@duempel.org> | 2008-10-20 22:18:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-20 22:18:12 +0200 |
commit | ba96920a52bbd2208aa1f3b284edc864e26198ce (patch) | |
tree | 6750d817780ef892d82e0ce0aecaebd54546799a /src/path.h | |
parent | 99e82a2ef293429e3fcc4f6e5d8e7981b4351c7c (diff) | |
download | mpd-ba96920a52bbd2208aa1f3b284edc864e26198ce.tar.gz mpd-ba96920a52bbd2208aa1f3b284edc864e26198ce.tar.xz mpd-ba96920a52bbd2208aa1f3b284edc864e26198ce.zip |
path: replaced mpd_basename() with g_path_get_basename()
GLib's g_path_get_basename() is much more reliable than
mpd_basename(). The latter could be tricked into an assertion
failure.
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/path.h b/src/path.h index 5230ce37c..62e7acc03 100644 --- a/src/path.h +++ b/src/path.h @@ -83,12 +83,4 @@ void pathcpy_trunc(char *dest, const char *src); */ void utf8_to_fs_playlist_path(char *path_max_tmp, const char *utf8path); -/* - * Like basename(3) but with predictable semantics independent - * of C library or build options used. This is also much more strict - * and does not account for trailing slashes (mpd should never deal with - * trailing slashes on internal functions). - */ -const char *mpd_basename(const char *path); - #endif |