summaryrefslogtreecommitdiff
path: root/lib/rpmfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmfi.c')
-rw-r--r--lib/rpmfi.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
index 18363f1d1..ad021170a 100644
--- a/lib/rpmfi.c
+++ b/lib/rpmfi.c
@@ -403,13 +403,9 @@ const char * rpmfiFLangsIndex(rpmfi fi, int ix)
return flangs;
}
-struct fingerPrint_s *rpmfiFpsIndex(rpmfi fi, int ix)
+struct fingerPrint_s *rpmfiFps(rpmfi fi)
{
- struct fingerPrint_s * fps = NULL;
- if (fi != NULL && fi->fps != NULL && ix >= 0 && ix < fi->fc) {
- fps = fi->fps + ix;
- }
- return fps;
+ return (fi != NULL) ? fi->fps : NULL;
}
int rpmfiNext(rpmfi fi)