From 790cb9514a738d56997e04dedc4d8c0e49bdab22 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 13 Jun 2012 18:44:06 +0000 Subject: (pack_header) constify some local variables --- URPM.xs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'URPM.xs') 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), -- cgit v1.2.1