aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-13 09:56:57 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 09:56:57 +0200
commit5ea2e198f95d82df3f30dd1b702d0c1a97b26462 (patch)
treeac10a1dd5f668a3a1702d993646a6b9e537e0599
parent313405edb6bcd83d0a45338d8419fb7065cb565b (diff)
downloadmpd-5ea2e198f95d82df3f30dd1b702d0c1a97b26462.tar.gz
mpd-5ea2e198f95d82df3f30dd1b702d0c1a97b26462.tar.xz
mpd-5ea2e198f95d82df3f30dd1b702d0c1a97b26462.zip
directory: pass const pointers to inline functions
The inline functions directory_is_empty() and directory_get_path() don't modify the object - pass constant object pointers to them.
Diffstat (limited to '')
-rw-r--r--src/directory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directory.h b/src/directory.h
index 4e50cf1e8..a7a632ebc 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -57,13 +57,13 @@ void
directory_free(struct directory *directory);
static inline bool
-directory_is_empty(struct directory *directory)
+directory_is_empty(const struct directory *directory)
{
return directory->children.nr == 0 && directory->songs.nr == 0;
}
static inline const char *
-directory_get_path(struct directory *directory)
+directory_get_path(const struct directory *directory)
{
return directory->path;
}