mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
rpm: Remove -Wimplicit-function-declaration warnings
(From OE-Core rev: 9f2dbfc51ef2faf1b6154856adb69ca9f764573b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
+11
-7
@@ -28,11 +28,18 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|||||||
lib/rpmscript.c | 11 ++++++++---
|
lib/rpmscript.c | 11 ++++++++---
|
||||||
1 file changed, 8 insertions(+), 3 deletions(-)
|
1 file changed, 8 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/lib/rpmscript.c b/lib/rpmscript.c
|
|
||||||
index cc98c4885..f8bd3df04 100644
|
|
||||||
--- a/lib/rpmscript.c
|
--- a/lib/rpmscript.c
|
||||||
+++ b/lib/rpmscript.c
|
+++ b/lib/rpmscript.c
|
||||||
@@ -394,8 +394,7 @@ exit:
|
@@ -17,7 +17,7 @@
|
||||||
|
#include "rpmio/rpmio_internal.h"
|
||||||
|
|
||||||
|
#include "lib/rpmplugins.h" /* rpm plugins hooks */
|
||||||
|
-
|
||||||
|
+#include "lib/rpmchroot.h" /* rpmChrootOut */
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
struct scriptNextFileFunc_s {
|
||||||
|
@@ -391,8 +391,7 @@ exit:
|
||||||
Fclose(out); /* XXX dup'd STDOUT_FILENO */
|
Fclose(out); /* XXX dup'd STDOUT_FILENO */
|
||||||
|
|
||||||
if (fn) {
|
if (fn) {
|
||||||
@@ -42,7 +49,7 @@ index cc98c4885..f8bd3df04 100644
|
|||||||
free(fn);
|
free(fn);
|
||||||
}
|
}
|
||||||
free(mline);
|
free(mline);
|
||||||
@@ -428,7 +427,13 @@ rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd,
|
@@ -426,7 +425,13 @@ rpmRC rpmScriptRun(rpmScript script, int
|
||||||
|
|
||||||
if (rc != RPMRC_FAIL) {
|
if (rc != RPMRC_FAIL) {
|
||||||
if (script_type & RPMSCRIPTLET_EXEC) {
|
if (script_type & RPMSCRIPTLET_EXEC) {
|
||||||
@@ -57,6 +64,3 @@ index cc98c4885..f8bd3df04 100644
|
|||||||
} else {
|
} else {
|
||||||
rc = runLuaScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc);
|
rc = runLuaScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc);
|
||||||
}
|
}
|
||||||
--
|
|
||||||
2.11.0
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user