diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-26 23:39:14 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-26 23:40:40 +0300 |
commit | 91171b8df0f0d590e330aebaa754d0ec386de7c9 (patch) | |
tree | cc969d4a4da30b7c16f2dd4e5210456b27f5a090 /lib/rpmte.c | |
parent | 21e0e5cd482620bc73ff221b7ce26b41f97d7cee (diff) | |
download | librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.tar.gz librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.tar.bz2 librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.zip |
Bury stripTrailingChar() inside the only remaining user
- There used to be some other callers too but seems they've passed
away, leaving just the relocation code in rpmte.c. Which means we
can get this ugly bit out of the API.
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r-- | lib/rpmte.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c index 9638831c1..7d2dc080f 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -119,6 +119,14 @@ static void sortRelocs(rpmRelocation *relocations, int numRelocations) } } +static char * stripTrailingChar(char * s, char c) +{ + char * t; + for (t = s + strlen(s) - 1; *t == c && t >= s; t--) + *t = '\0'; + return s; +} + static void buildRelocs(rpmte p, Header h, rpmRelocation *relocs) { int i; |