Change headerPutString() arg name to match the others
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 3 Jul 2008 14:44:13 +0000 (17:44 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 3 Jul 2008 14:44:13 +0000 (17:44 +0300)
- doxygen whines a bit less..

lib/header.c
lib/header.h

index 7ecfea9..569ef9f 100644 (file)
@@ -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;
     }
index bd0759e..bdb8efb 100644 (file)
@@ -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);