summaryrefslogtreecommitdiff
path: root/lib/fs.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-08-31 12:29:56 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-08-31 12:29:56 +0300
commit4ef65c9a4218f9b354b00708ee2126fb1b7bec74 (patch)
tree48adea6ba921d715af83d2e52a4bef38e6bbc87d /lib/fs.c
parent1cd1eba2ab619afd17228e326dda0a1b1b4c9a2f (diff)
downloadrpm-4ef65c9a4218f9b354b00708ee2126fb1b7bec74.tar.gz
rpm-4ef65c9a4218f9b354b00708ee2126fb1b7bec74.tar.bz2
rpm-4ef65c9a4218f9b354b00708ee2126fb1b7bec74.zip
Replace equal/not equal uses of str[n]cmp() with rstreq[n] in misc helpers
Diffstat (limited to 'lib/fs.c')
-rw-r--r--lib/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.c b/lib/fs.c
index cb9011f2f..e16a929dc 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -316,7 +316,7 @@ int rpmGetFilesystemUsage(const char ** fileList, rpm_loff_t * fssizes,
strcpy(buf, sourceDir);
}
- if (strcmp(lastDir, buf)) {
+ if (!rstreq(lastDir, buf)) {
strcpy(dirName, buf);
chptr = dirName + strlen(dirName) - 1;
while (stat(dirName, &sb)) {