From 5ea2e198f95d82df3f30dd1b702d0c1a97b26462 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Oct 2008 09:56:57 +0200 Subject: [PATCH] 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. --- src/directory.h | 4 ++-- 1 file 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; }