diff options
author | jbj <devnull@localhost> | 1999-06-23 21:01:38 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-06-23 21:01:38 +0000 |
commit | 8bc8f024e61fc218fe8285e33e645a2bb8df7ed6 (patch) | |
tree | 359f4a72df77d3c1107cc483589c990f4d188ea5 /build | |
parent | 963f0117f943daaab57110a5438e17da42878c01 (diff) | |
download | librpm-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.c | 21 | ||||
-rw-r--r-- | build/rpmbuild.h | 2 |
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); |