aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-11 19:49:14 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-11 23:34:36 -0700
commit6e2b0ca9edaed200f250ef487701ad161aa4a168 (patch)
treefda140c473d960546bc8123be4b85e72fbe9b1b8 /src/command.c
parente71207440ebdf492e00fd5ac73b0833c82366ac6 (diff)
downloadmpd-6e2b0ca9edaed200f250ef487701ad161aa4a168.tar.gz
mpd-6e2b0ca9edaed200f250ef487701ad161aa4a168.tar.xz
mpd-6e2b0ca9edaed200f250ef487701ad161aa4a168.zip
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".
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 3 insertions, 3 deletions
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);