aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-13 18:44:06 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-13 18:44:06 +0000
commit790cb9514a738d56997e04dedc4d8c0e49bdab22 (patch)
tree85936527344294c74dcc88f91df1df6e64b9680c
parentff490cec3dc781646ef2f6ea7d8c581409f04d71 (diff)
downloadperl-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
-rw-r--r--URPM.xs10
1 files changed, 5 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index e440857..ca66abf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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),