Make bunch of build internal code take const parameters
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Dec 2007 16:33:28 +0000 (18:33 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Dec 2007 16:33:28 +0000 (18:33 +0200)
build/files.c
build/parsePreamble.c
build/parsePrep.c

index e8a16bd..bfadb3f 100644 (file)
@@ -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;
index 37855f8..fe44970 100644 (file)
@@ -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];
index c511426..9cacad6 100644 (file)
@@ -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;