aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs19
1 files changed, 2 insertions, 17 deletions
diff --git a/URPM.xs b/URPM.xs
index fb2d41f..e535e71 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -290,21 +290,6 @@ callback_list_str_xpush(char *s, int slen, const char *name, rpmsenseFlags flags
/* returning zero indicates to continue processing */
return 0;
}
-static int
-callback_list_str_xpush_requires(char *s, int slen, const char *name, const rpmsenseFlags flags, const char *evr, __attribute__((unused)) void *param) {
- dSP;
- if (s)
- mXPUSHs(newSVpv(s, slen));
- else {
- char buff[4096];
- int len = print_list_entry(buff, sizeof(buff)-1, name, flags, evr);
- if (len >= 0)
- mXPUSHs(newSVpv(buff, len));
- }
- PUTBACK;
- /* returning zero indicates to continue processing */
- return 0;
-}
struct cb_overlap_s {
rpmsenseFlags flags;
@@ -1839,7 +1824,7 @@ Pkg_requires(pkg)
PPCODE:
PUTBACK;
return_list_str(pkg->requires, pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIREVERSION,
- callback_list_str_xpush_requires, NULL);
+ callback_list_str_xpush, NULL);
SPAGAIN;
void
@@ -1848,7 +1833,7 @@ Pkg_requires_nosense(pkg)
PPCODE:
PUTBACK;
return_list_str(pkg->requires, pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, 0,
- callback_list_str_xpush_requires, NULL);
+ callback_list_str_xpush, NULL);
SPAGAIN;
void