summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/build.c2
-rw-r--r--build/rpmbuild.h6
-rw-r--r--rpmbuild.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/build/build.c b/build/build.c
index 3e957ca6f..fe65bc10a 100644
--- a/build/build.c
+++ b/build/build.c
@@ -302,7 +302,7 @@ exit:
return rc;
}
-rpmRC rpmSpecBuild(BTA_t buildArgs, rpmSpec spec)
+rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs)
{
/* buildSpec() can recurse with different buildAmount, pass it separately */
return buildSpec(buildArgs, spec, buildArgs->buildAmount);
diff --git a/build/rpmbuild.h b/build/rpmbuild.h
index 78981a902..8a9c1547d 100644
--- a/build/rpmbuild.h
+++ b/build/rpmbuild.h
@@ -87,12 +87,12 @@ rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
rpmds rpmSpecDS(rpmSpec spec, rpmTag tag);
/** \ingroup rpmbuild
- * Build stages state machine driver.
- * @param buildArgs build arguments
+ * Spec build stages state machine driver.
* @param spec spec file control structure
+ * @param buildArgs build arguments
* @return RPMRC_OK on success
*/
-rpmRC rpmSpecBuild(BTA_t buildArgs, rpmSpec spec);
+rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs);
#ifdef __cplusplus
}
diff --git a/rpmbuild.c b/rpmbuild.c
index fe604bac9..a8b6b80e5 100644
--- a/rpmbuild.c
+++ b/rpmbuild.c
@@ -472,7 +472,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
goto exit;
}
- if (rpmSpecBuild(ba, spec)) {
+ if (rpmSpecBuild(spec, ba)) {
goto exit;
}