summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-09-19 23:23:54 +0000
committerjbj <devnull@localhost>1998-09-19 23:23:54 +0000
commit0ba3a6c926b206f7bc48e6f3d9ae6ed3823dbdeb (patch)
tree9bba52c571bbc8ce6905eaa9b435713e35fa8375 /tools
parent572ef48842a4656f5a73fa006598f80dcf348ce5 (diff)
downloadrpm-0ba3a6c926b206f7bc48e6f3d9ae6ed3823dbdeb.tar.gz
rpm-0ba3a6c926b206f7bc48e6f3d9ae6ed3823dbdeb.tar.bz2
rpm-0ba3a6c926b206f7bc48e6f3d9ae6ed3823dbdeb.zip
Sanity.
CVS patchset: 2330 CVS date: 1998/09/19 23:23:54
Diffstat (limited to 'tools')
-rw-r--r--tools/rpmgettext.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/rpmgettext.c b/tools/rpmgettext.c
index 7684819d7..805295ed1 100644
--- a/tools/rpmgettext.c
+++ b/tools/rpmgettext.c
@@ -216,19 +216,23 @@ genSrpmFileName(Header h)
}
-static char *
+static const char *
hasLang(const char *onlylang, char **langs, char **s)
{
- char *e = *s;
+ const char *e = *s;
int i = 0;
while(langs[i] && strcmp(langs[i], onlylang)) {
i++;
e += strlen(e) + 1;
}
+#if 0
if (langs[i] && *e)
return e;
return NULL;
+#else
+ return onlylang;
+#endif
}
static int poTags[] = {
@@ -269,7 +273,8 @@ gettextfile(int fd, const char *file, FILE *fp, int *poTags)
sourcerpm = genSrpmFileName(h);
for (tp = poTags; *tp != 0; tp++) {
- char **s, *e, *onlymsgstr;
+ const char *onlymsgstr;
+ char **s, *e;
int i, type, count, nmsgstrs;
if (!headerGetRawEntry(h, *tp, &type, (void **)&s, &count))