aboutsummaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:30 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:30 +0000
commit0659d359513107e3ed4b66a471f3cb3939a09521 (patch)
tree96bd7379db0604e1aa5474916567b6e1d2a63c80 /src/tree.c
parent07eaad301af56995f5c6a541c06ef9483d9fa9ec (diff)
downloadmpd-0659d359513107e3ed4b66a471f3cb3939a09521.tar.gz
mpd-0659d359513107e3ed4b66a471f3cb3939a09521.tar.xz
mpd-0659d359513107e3ed4b66a471f3cb3939a09521.zip
fix -Waggregate-return
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7145 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 26b58845c..4b212cca6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -630,13 +630,13 @@ void IncrementTreeIterator(TreeIterator * iter)
}
}
-TreeKeyData
+const TreeKeyData *
GetTreeKeyData(TreeIterator * iter)
{
assert(iter->node &&
iter->which > 0 &&
iter->which <= iter->node->count);
- return iter->node->keyData[iter->which-1];
+ return &iter->node->keyData[iter->which-1];
}
int