From 07adb14e3c4daa8b1e6ebc69e54128b38b014d30 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Jan 2008 12:46:21 +0000 Subject: fixed -Wshadow warnings Signed-off-by: Eric Wong git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/storedPlaylist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/storedPlaylist.c') diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c index c456b543f..b0d66fb10 100644 --- a/src/storedPlaylist.c +++ b/src/storedPlaylist.c @@ -27,16 +27,16 @@ #include "directory.h" #include "os_compat.h" -static ListNode *nodeOfStoredPlaylist(List *list, int index) +static ListNode *nodeOfStoredPlaylist(List *list, int idx) { int forward; ListNode *node; int i; - if (index >= list->numberOfNodes || index < 0) + if (idx >= list->numberOfNodes || idx < 0) return NULL; - if (index > (list->numberOfNodes/2)) { + if (idx > (list->numberOfNodes/2)) { forward = 0; node = list->lastNode; i = list->numberOfNodes - 1; @@ -47,7 +47,7 @@ static ListNode *nodeOfStoredPlaylist(List *list, int index) } while (node != NULL) { - if (i == index) + if (i == idx) return node; if (forward) { -- cgit v1.2.3