summaryrefslogtreecommitdiffstats
path: root/RPM4/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-11-04 22:58:32 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-11-06 11:21:56 +0100
commita964bf03b3b64fe3bccabbedb80dddad201fe380 (patch)
tree387f583887c8a49f576ccc4aae5f90459c00bd0c /RPM4/src
parentb27d602eae17f889f5dbe15030ec46312938c070 (diff)
downloadperl-RPM4-a964bf03b3b64fe3bccabbedb80dddad201fe380.tar
perl-RPM4-a964bf03b3b64fe3bccabbedb80dddad201fe380.tar.gz
perl-RPM4-a964bf03b3b64fe3bccabbedb80dddad201fe380.tar.bz2
perl-RPM4-a964bf03b3b64fe3bccabbedb80dddad201fe380.tar.xz
perl-RPM4-a964bf03b3b64fe3bccabbedb80dddad201fe380.zip
kill useless arg
Diffstat (limited to 'RPM4/src')
-rw-r--r--RPM4/src/RPM4.xs8
1 files changed, 3 insertions, 5 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 5e16773..cd8fa56 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -421,7 +421,7 @@ void _newspec(rpmts ts, char * filename, SV * svanyarch, SV * svforce) {
}
/* Building a spec file */
-int _specbuild(rpmts ts, rpmSpec spec, SV * sv_buildflags) {
+int _specbuild(rpmSpec spec, SV * sv_buildflags) {
rpmBuildFlags buildflags = sv2rpmbuildflags(sv_buildflags);
if (buildflags == RPMBUILD_NONE) croak("No action given for build");
BTA_t flags = calloc(1, sizeof(*flags));
@@ -1838,7 +1838,7 @@ Ts_specbuild(ts, spec, sv_buildflags)
rpmSpec spec
SV * sv_buildflags
CODE:
- RETVAL = _specbuild(ts, spec, sv_buildflags);
+ RETVAL = _specbuild(spec, sv_buildflags);
OUTPUT:
RETVAL
@@ -2625,10 +2625,8 @@ Spec_build(spec, sv_buildflags)
rpmSpec spec
SV * sv_buildflags
PREINIT:
- rpmts ts = rpmtsCreate();
CODE:
- RETVAL = _specbuild(ts, spec, sv_buildflags);
- ts = rpmtsFree(ts);
+ RETVAL = _specbuild(spec, sv_buildflags);
OUTPUT:
RETVAL