summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-06-23 21:01:38 +0000
committerjbj <devnull@localhost>1999-06-23 21:01:38 +0000
commit8bc8f024e61fc218fe8285e33e645a2bb8df7ed6 (patch)
tree359f4a72df77d3c1107cc483589c990f4d188ea5 /build
parent963f0117f943daaab57110a5438e17da42878c01 (diff)
downloadlibrpm-tizen-8bc8f024e61fc218fe8285e33e645a2bb8df7ed6.tar.gz
librpm-tizen-8bc8f024e61fc218fe8285e33e645a2bb8df7ed6.tar.bz2
librpm-tizen-8bc8f024e61fc218fe8285e33e645a2bb8df7ed6.zip
Finesse tagName dependency loop.
CVS patchset: 3108 CVS date: 1999/06/23 21:01:38
Diffstat (limited to 'build')
-rw-r--r--build/parsePreamble.c21
-rw-r--r--build/rpmbuild.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 929be0236..fe00f303c 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -162,27 +162,6 @@ static int checkForValidArchitectures(Spec spec)
return 0;
}
-const char *tagName(int tag)
-{
- int i = 0;
- static char nameBuf[1024];
- char *s;
-
- strcpy(nameBuf, "(unknown)");
- while (i < rpmTagTableSize) {
- if (tag == rpmTagTable[i].val) {
- strcpy(nameBuf, rpmTagTable[i].name + 7);
- s = nameBuf+1;
- while (*s) {
- *s = tolower(*s);
- s++;
- }
- }
- i++;
- }
- return nameBuf;
-}
-
static int checkForRequired(Header h, char *name)
{
int res = 0;
diff --git a/build/rpmbuild.h b/build/rpmbuild.h
index 2277bed05..f6317dab2 100644
--- a/build/rpmbuild.h
+++ b/build/rpmbuild.h
@@ -99,8 +99,6 @@ char *cleanFileName(const char *name);
/* from build/parse.h */
-const char *tagName(int tag);
-
int parseChangelog(Spec spec);
int parseDescription(Spec spec);
int parseFiles(Spec spec);