aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-06-13 21:22:41 +0200
committerMax Kellermann <max@duempel.org>2012-06-13 21:22:41 +0200
commit1a59730782bffe91d4d136cee5c65f9f5726bb75 (patch)
tree38ef1dd194432cf249b34fe682907b57f32404ec
parent20029e7ce8967c2c92d2bd05864835d82fa526da (diff)
downloadmpd-1a59730782bffe91d4d136cee5c65f9f5726bb75.tar.gz
mpd-1a59730782bffe91d4d136cee5c65f9f5726bb75.tar.xz
mpd-1a59730782bffe91d4d136cee5c65f9f5726bb75.zip
update_walk: add "pure" attributes
-rw-r--r--src/update_walk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/update_walk.c b/src/update_walk.c
index e07203782..0fcfaf37e 100644
--- a/src/update_walk.c
+++ b/src/update_walk.c
@@ -519,6 +519,7 @@ update_directory_child(struct directory *directory,
}
/* we don't look at "." / ".." nor files with newlines in their name */
+G_GNUC_PURE
static bool skip_path(const char *path)
{
return (path[0] == '.' && path[1] == 0) ||
@@ -526,6 +527,7 @@ static bool skip_path(const char *path)
strchr(path, '\n') != NULL;
}
+G_GNUC_PURE
static bool
skip_symlink(const struct directory *directory, const char *utf8_name)
{