diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:44:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:44:06 +0000 |
commit | 790cb9514a738d56997e04dedc4d8c0e49bdab22 (patch) | |
tree | 85936527344294c74dcc88f91df1df6e64b9680c /URPM.xs | |
parent | ff490cec3dc781646ef2f6ea7d8c581409f04d71 (diff) | |
download | perl-URPM-790cb9514a738d56997e04dedc4d8c0e49bdab22.tar perl-URPM-790cb9514a738d56997e04dedc4d8c0e49bdab22.tar.gz perl-URPM-790cb9514a738d56997e04dedc4d8c0e49bdab22.tar.bz2 perl-URPM-790cb9514a738d56997e04dedc4d8c0e49bdab22.tar.xz perl-URPM-790cb9514a738d56997e04dedc4d8c0e49bdab22.zip |
(pack_header) constify some local variables
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -788,11 +788,11 @@ pack_header(const URPM__Package pkg) { if (pkg->h) { if (pkg->info == NULL) { char buff[1024]; - char *p = buff; - char *name = get_name(pkg->h, RPMTAG_NAME); - char *version = get_name(pkg->h, RPMTAG_VERSION); - char *release = get_name(pkg->h, RPMTAG_RELEASE); - char *arch = get_arch(pkg->h); + const char *p = buff; + const char *name = get_name(pkg->h, RPMTAG_NAME); + const char *version = get_name(pkg->h, RPMTAG_VERSION); + const char *release = get_name(pkg->h, RPMTAG_RELEASE); + const char *arch = get_arch(pkg->h); p += 1 + snprintf(buff, sizeof(buff), "%s-%s-%s.%s@%d@%d@%s", name, version, release, arch, get_int(pkg->h, RPMTAG_EPOCH), get_int(pkg->h, RPMTAG_SIZE), |