aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.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/dbUtils.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/dbUtils.c')
-rw-r--r--src/dbUtils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 9e307efc6..1fadb232e 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -45,20 +45,20 @@ typedef struct _SearchStats {
unsigned long playTime;
} SearchStats;
-static int countSongsInDirectory(struct directory *directory, void *data)
+static int countSongsInDirectory(struct directory *dir, void *data)
{
int *count = (int *)data;
- *count += directory->songs.nr;
+ *count += dir->songs.nr;
return 0;
}
-static int printDirectoryInDirectory(struct directory *directory, void *data)
+static int printDirectoryInDirectory(struct directory *dir, void *data)
{
int fd = (int)(size_t)data;
- if (!isRootDirectory(directory->path))
- fdprintf(fd, "directory: %s\n", directory_get_path(directory));
+ if (!isRootDirectory(dir->path))
+ fdprintf(fd, "directory: %s\n", directory_get_path(dir));
return 0;
}