diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:49:14 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 23:34:36 -0700 |
commit | 6e2b0ca9edaed200f250ef487701ad161aa4a168 (patch) | |
tree | fda140c473d960546bc8123be4b85e72fbe9b1b8 /src/command.c | |
parent | e71207440ebdf492e00fd5ac73b0833c82366ac6 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/command.c | 6 |
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); |