diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-01-02 13:22:26 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-01-02 13:22:26 +0200 |
commit | d772111b9131a9fc7ad4da1008ba6fb202344a2f (patch) | |
tree | dbe7ad29a8b2f0706d33741bed9c24a4b5f2e297 /rpmdb | |
parent | addac6a86be1a6c7a668f97c9d7a0d85277f6779 (diff) | |
download | librpm-tizen-d772111b9131a9fc7ad4da1008ba6fb202344a2f.tar.gz librpm-tizen-d772111b9131a9fc7ad4da1008ba6fb202344a2f.tar.bz2 librpm-tizen-d772111b9131a9fc7ad4da1008ba6fb202344a2f.zip |
Use size_t, not int for header format padding args
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/header.c | 14 | ||||
-rw-r--r-- | rpmdb/header.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c index 0dc8309f1..17b8101b0 100644 --- a/rpmdb/header.c +++ b/rpmdb/header.c @@ -3048,7 +3048,7 @@ char * _headerSprintf(Header h, const char * fmt, sprintfTag tag; char * t, * te; int isxml; - int need; + size_t need; hsa->h = _headerLink(h); hsa->fmt = xstrdup(fmt); @@ -3118,7 +3118,7 @@ exit: * @return formatted string */ static char * octalFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding,int element) + char * formatPrefix, size_t padding,int element) { char * val; @@ -3143,7 +3143,7 @@ static char * octalFormat(rpm_tagtype_t type, rpm_constdata_t data, * @return formatted string */ static char * hexFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding,int element) + char * formatPrefix, size_t padding,int element) { char * val; @@ -3161,7 +3161,7 @@ static char * hexFormat(rpm_tagtype_t type, rpm_constdata_t data, /** */ static char * realDateFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding,int element, + char * formatPrefix, size_t padding,int element, const char * strftimeFormat) { char * val; @@ -3198,7 +3198,7 @@ static char * realDateFormat(rpm_tagtype_t type, rpm_constdata_t data, * @return formatted string */ static char * dateFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding, int element) + char * formatPrefix, size_t padding, int element) { return realDateFormat(type, data, formatPrefix, padding, element, _("%c")); @@ -3214,7 +3214,7 @@ static char * dateFormat(rpm_tagtype_t type, rpm_constdata_t data, * @return formatted string */ static char * dayFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding, int element) + char * formatPrefix, size_t padding, int element) { return realDateFormat(type, data, formatPrefix, padding, element, _("%a %b %d %Y")); @@ -3230,7 +3230,7 @@ static char * dayFormat(rpm_tagtype_t type, rpm_constdata_t data, * @return formatted string */ static char * shescapeFormat(rpm_tagtype_t type, rpm_constdata_t data, - char * formatPrefix, int padding,int element) + char * formatPrefix, size_t padding,int element) { char * result, * dst, * src, * buf; diff --git a/rpmdb/header.h b/rpmdb/header.h index e4361524b..b652d2cb4 100644 --- a/rpmdb/header.h +++ b/rpmdb/header.h @@ -145,7 +145,7 @@ enum headerSprintfExtensionType { */ typedef char * (*headerTagFormatFunction)(rpm_tagtype_t type, rpm_constdata_t data, char * formatPrefix, - int padding, rpm_count_t element); + size_t padding, rpm_count_t element); /** \ingroup header * HEADER_EXT_FORMAT format function prototype. |