aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-13 09:55:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 09:55:00 +0200
commit8d907fb9fafaeddeb237e494ff461d2df6c03af4 (patch)
treeaa28b4fa8cdb1de45662b9cc4b12710b7797f7cd /src/directory.h
parent8867bd554c6acd508d41f80457bac242a36e61fc (diff)
downloadmpd-8d907fb9fafaeddeb237e494ff461d2df6c03af4.tar.gz
mpd-8d907fb9fafaeddeb237e494ff461d2df6c03af4.tar.xz
mpd-8d907fb9fafaeddeb237e494ff461d2df6c03af4.zip
directory: use mpd_sizeof_str_flex_array for path, too
This way we avoid unnecessary heap allocations.
Diffstat (limited to 'src/directory.h')
-rw-r--r--src/directory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.h b/src/directory.h
index 9dd064ef7..4e50cf1e8 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -35,13 +35,13 @@
#define DIRECTORY_FS_CHARSET "fs_charset: "
struct directory {
- char *path;
struct dirvec children;
struct songvec songs;
struct directory *parent;
ino_t inode;
dev_t device;
unsigned stat; /* not needed if ino_t == dev_t == 0 is impossible */
+ char path[sizeof(long)];
};
static inline bool