From 6e2b0ca9edaed200f250ef487701ad161aa4a168 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Oct 2008 19:49:14 -0700 Subject: directory: don't use identical struct and variable names Duplicated tokens in close proximity takes too long for my head to parse; and "dir" is an easy and common abbreviation for "directory". --- src/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 541a71a50..e542683d8 100644 --- a/src/command.c +++ b/src/command.c @@ -560,17 +560,17 @@ static int handleLsInfo(int fd, mpd_unused int *permission, int argc, char *argv[]) { const char *path = ""; - const struct directory *directory; + const struct directory *dir; if (argc == 2) path = argv[1]; - if (!(directory = db_get_directory(path))) { + if (!(dir = db_get_directory(path))) { commandError(fd, ACK_ERROR_NO_EXIST, "directory not found"); return -1; } - directory_print(fd, directory); + directory_print(fd, dir); if (isRootDirectory(path)) return lsPlaylists(fd, path); -- cgit v1.2.3