From 78040394a29b3960cd6adaf8bd626936093008a3 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 3 Jul 2008 17:44:13 +0300 Subject: [PATCH] Change headerPutString() arg name to match the others - doxygen whines a bit less.. --- lib/header.c | 6 +++--- lib/header.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/header.c b/lib/header.c index 7ecfea9..569ef9f 100644 --- a/lib/header.c +++ b/lib/header.c @@ -1626,16 +1626,16 @@ static int headerPutType(Header h, rpmTag tag, rpmTagType reqtype, return valid; } -int headerPutString(Header h, rpmTag tag, const char *str) +int headerPutString(Header h, rpmTag tag, const char *val) { rpmTagType type = rpmTagGetType(tag) & RPM_MASK_TYPE; const void *sptr = NULL; /* string arrays expect char **, arrange that */ if (type == RPM_STRING_ARRAY_TYPE) { - sptr = &str; + sptr = &val; } else if (type == RPM_STRING_TYPE) { - sptr = str; + sptr = val; } else { return 0; } diff --git a/lib/header.h b/lib/header.h index bd0759e..bdb8efb 100644 --- a/lib/header.h +++ b/lib/header.h @@ -206,7 +206,7 @@ int headerPut(Header h, rpmtd td, headerPutFlags flags); * @return 1 on success, 0 on failure * */ -int headerPutString(Header h, rpmTag tag, const char *str); +int headerPutString(Header h, rpmTag tag, const char *val); int headerPutStringArray(Header h, rpmTag tag, const char **val, rpm_count_t size); int headerPutBin(Header h, rpmTag tag, uint8_t *val, rpm_count_t size); int headerPutChar(Header h, rpmTag tag, char *val, rpm_count_t size); -- 2.7.4