diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2006-08-06 13:53:53 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2006-08-06 13:53:53 +0000 |
commit | 8e53406774e973e2a5793ccfe5069c514a82fb8a (patch) | |
tree | ea3b90b06bf7a66fbfb035262d079185b09d480c /src/directory.c | |
parent | 31de97a42b384ffd2ce7051248cefc075e935522 (diff) | |
download | mpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.tar.gz mpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.tar.xz mpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.zip |
renamce cstrtok to buffer2array. please don't rename functions; especially to names that look extremely std-lib-ish. also, don't use isspace, apparently it's local dependent and potentially consideres ' ' or '\t' not to be a space, or considers other characters to be a space.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4574 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/directory.c')
-rw-r--r-- | src/directory.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/directory.c b/src/directory.c index 9b90418f2..73a43d98f 100644 --- a/src/directory.c +++ b/src/directory.c @@ -18,22 +18,23 @@ #include "directory.h" -#include "ls.h" #include "command.h" -#include "utils.h" -#include "path.h" -#include "log.h" #include "conf.h" -#include "stats.h" -#include "playlist.h" -#include "listen.h" +#include "dbUtils.h" #include "interface.h" -#include "volume.h" +#include "list.h" +#include "listen.h" +#include "log.h" +#include "ls.h" #include "mpd_types.h" +#include "path.h" +#include "player.h" +#include "playlist.h" #include "sig_handlers.h" -#include "list.h" -#include "dbUtils.h" +#include "stats.h" #include "tagTracker.h" +#include "utils.h" +#include "volume.h" #include <sys/wait.h> #include <dirent.h> @@ -732,7 +733,8 @@ static int statDirectory(Directory * dir) { struct stat st; - if (myStat(getDirectoryPath(dir) ? getDirectoryPath(dir) : "", &st) < 0) { + if (myStat(getDirectoryPath(dir) ? getDirectoryPath(dir) : "", &st) < 0) + { return -1; } |