summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-15 18:33:28 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-15 18:33:28 +0200
commitaa61b715e6639d6900ca66facb62d5f099dd11d4 (patch)
tree97673890c79ed3576329a4b9df9d92229723e1dd /build
parente8ffcb26b5cb60d4ad6130b0010c40ffd8d83b81 (diff)
downloadrpm-aa61b715e6639d6900ca66facb62d5f099dd11d4.tar.gz
rpm-aa61b715e6639d6900ca66facb62d5f099dd11d4.tar.bz2
rpm-aa61b715e6639d6900ca66facb62d5f099dd11d4.zip
Make bunch of build internal code take const parameters
Diffstat (limited to 'build')
-rw-r--r--build/files.c10
-rw-r--r--build/parsePreamble.c4
-rw-r--r--build/parsePrep.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/build/files.c b/build/files.c
index e8a16bd41..bfadb3f24 100644
--- a/build/files.c
+++ b/build/files.c
@@ -281,7 +281,7 @@ VFA_t verifyAttrs[] = {
* @param fl package file tree walk data
* @return RPMRC_OK on success
*/
-static rpmRC parseForVerify(char * buf, FileList fl)
+static rpmRC parseForVerify(const char * buf, FileList fl)
{
char *p, *pe, *q;
const char *name;
@@ -374,7 +374,7 @@ static rpmRC parseForVerify(char * buf, FileList fl)
* @param fl package file tree walk data
* @return RPMRC_OK on success
*/
-static rpmRC parseForDev(char * buf, FileList fl)
+static rpmRC parseForDev(const char * buf, FileList fl)
{
const char * name;
const char * errstr = NULL;
@@ -470,7 +470,7 @@ exit:
* @param fl package file tree walk data
* @return 0 on success
*/
-static int parseForAttr(char * buf, FileList fl)
+static int parseForAttr(const char * buf, FileList fl)
{
const char *name;
char *p, *pe, *q;
@@ -598,7 +598,7 @@ static int parseForAttr(char * buf, FileList fl)
* @param fl package file tree walk data
* @return RPMRC_OK on success
*/
-static rpmRC parseForConfig(char * buf, FileList fl)
+static rpmRC parseForConfig(const char * buf, FileList fl)
{
char *p, *pe, *q;
const char *name;
@@ -668,7 +668,7 @@ static int langCmp(const void * ap, const void * bp)
* @param fl package file tree walk data
* @return RPMRC_OK on success
*/
-static int parseForLang(char * buf, FileList fl)
+static int parseForLang(const char * buf, FileList fl)
{
char *p, *pe, *q;
const char *name;
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 37855f845..fe44970fb 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -50,7 +50,7 @@ static rpm_tag_t requiredTags[] = {
/**
*/
-static void addOrAppendListEntry(Header h, rpm_tag_t tag, char * line)
+static void addOrAppendListEntry(Header h, rpm_tag_t tag, const char * line)
{
int xx;
int argc;
@@ -68,7 +68,7 @@ static void addOrAppendListEntry(Header h, rpm_tag_t tag, char * line)
/**
*/
-static int parseSimplePart(char *line,char **name,int *flag)
+static int parseSimplePart(const char *line, char **name, int *flag)
{
char *tok;
char linebuf[BUFSIZ];
diff --git a/build/parsePrep.c b/build/parsePrep.c
index c511426ef..9cacad625 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -277,7 +277,7 @@ static const char *doUntar(rpmSpec spec, int c, int quietly)
* @param line current line from spec file
* @return RPMRC_OK on success
*/
-static int doSetupMacro(rpmSpec spec, char *line)
+static int doSetupMacro(rpmSpec spec, const char *line)
{
char buf[BUFSIZ];
StringBuf before;
@@ -424,7 +424,7 @@ static int doSetupMacro(rpmSpec spec, char *line)
* @param line current line from spec file
* @return RPMRC_OK on success
*/
-static rpmRC doPatchMacro(rpmSpec spec, char *line)
+static rpmRC doPatchMacro(rpmSpec spec, const char *line)
{
char *opt_b;
int opt_P, opt_p, opt_R, opt_E, opt_F;