summaryrefslogtreecommitdiff
path: root/rpmio/rpmhook.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-08-31 11:15:16 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-08-31 11:15:16 +0300
commitf4b39519d32287b9f0ed8dc9ad93787ca6a63fcd (patch)
tree6b4def45e0fdf823860e3430351038bfc10d3705 /rpmio/rpmhook.c
parent0c4e48de7908823e19945887d5e7b6ee7fa6bedd (diff)
downloadrpm-f4b39519d32287b9f0ed8dc9ad93787ca6a63fcd.tar.gz
rpm-f4b39519d32287b9f0ed8dc9ad93787ca6a63fcd.tar.bz2
rpm-f4b39519d32287b9f0ed8dc9ad93787ca6a63fcd.zip
Replace equal/not equal uses of str[n]cmp() with rstreq[n] in io code
Diffstat (limited to 'rpmio/rpmhook.c')
-rw-r--r--rpmio/rpmhook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmhook.c b/rpmio/rpmhook.c
index bece9da04..1928df0c9 100644
--- a/rpmio/rpmhook.c
+++ b/rpmio/rpmhook.c
@@ -97,7 +97,7 @@ static int rpmhookTableFindBucket(rpmhookTable *table, const char *name)
ret = hash % (*table)->size;
bucket = &(*table)->bucket[ret];
while (bucket->name &&
- (bucket->hash != hash || strcmp(bucket->name, name) != 0)) {
+ (bucket->hash != hash || !rstreq(bucket->name, name))) {
/* Collision resolution based on Python's perturb scheme. */
ret = ((ret << 2) + ret + perturb + 1) % (*table)->size;
perturb >>= 5;