aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory_print.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/directory_print.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 '')
-rw-r--r--src/directory_print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/directory_print.c b/src/directory_print.c
index ebf9a472d..1c30f1608 100644
--- a/src/directory_print.c
+++ b/src/directory_print.c
@@ -36,11 +36,11 @@ static int dirvec_print(int fd, const struct dirvec *dv)
return 0;
}
-int directory_print(int fd, const struct directory *directory)
+int directory_print(int fd, const struct directory *dir)
{
- if (dirvec_print(fd, &directory->children) < 0)
+ if (dirvec_print(fd, &dir->children) < 0)
return -1;
- if (songvec_for_each(&directory->songs, song_print_info_x,
+ if (songvec_for_each(&dir->songs, song_print_info_x,
(void *)(size_t)fd) < 0)
return -1;
return 0;