meta-openembedded/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc/0001-rpcgen-Fix-printf-formats.patch
Martin Jansa be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00

54 lines
1.3 KiB
Diff

From 439e3e35f7fcbff1abb782de4b19b31e43ae3449 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 27 Jun 2017 09:59:19 -0700
Subject: [PATCH] rpcgen: Fix printf formats
Fixes build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
rpcgen/rpc_hout.c | 2 +-
rpcgen/rpc_tblout.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rpcgen/rpc_hout.c b/rpcgen/rpc_hout.c
index 0ef52df..09a7b57 100644
--- a/rpcgen/rpc_hout.c
+++ b/rpcgen/rpc_hout.c
@@ -474,7 +474,7 @@ pdeclaration(const char *name, declaration *dec, int tab,
break;
}
}
- f_print(fout, separator );
+ f_print(fout, "%s", separator );
}
static int
diff --git a/rpcgen/rpc_tblout.c b/rpcgen/rpc_tblout.c
index d64bfde..fd62a52 100644
--- a/rpcgen/rpc_tblout.c
+++ b/rpcgen/rpc_tblout.c
@@ -99,7 +99,7 @@ write_table(const definition *def)
}
else {
expected = 1;
- f_print(fout, null_entry);
+ f_print(fout, "%s", null_entry);
}
for (proc = vp->procs; proc != NULL; proc = proc->next) {
current = atoi(proc->proc_num);
@@ -139,7 +139,7 @@ write_table(const definition *def)
}
/* print the table trailer */
- f_print(fout, tbl_end);
+ f_print(fout, "%s", tbl_end);
f_print(fout, tbl_nproc, progvers, progvers, progvers);
}
}
--
2.13.2