aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 19:11:51 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:50 -0700
commit1f70121c5604be45e81c5a07d59efea2aaa1597b (patch)
treef8f7ee98f35ebda35f7bcd6e1b052ce22ecc12d1
parente553fa4d36016cd4ba2162a64d8a770bef618608 (diff)
downloadmpd-1f70121c5604be45e81c5a07d59efea2aaa1597b.tar.gz
mpd-1f70121c5604be45e81c5a07d59efea2aaa1597b.tar.xz
mpd-1f70121c5604be45e81c5a07d59efea2aaa1597b.zip
update: pass const pointer to addSubDirectoryToDirectory()
The stat struct isn't going to be modified, make it const.
-rw-r--r--src/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index e2afb7f81..49850256c 100644
--- a/src/update.c
+++ b/src/update.c
@@ -196,7 +196,7 @@ inodeFoundInParent(struct directory *parent, ino_t inode, dev_t device)
static enum update_return
addSubDirectoryToDirectory(struct directory *directory,
- const char *name, struct stat *st)
+ const char *name, const struct stat *st)
{
struct directory *subDirectory;