mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
dev-build/kbuild: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
Fix int to pointer conversion for clang
|
|
||||||
|
|
||||||
Note - this parameter was not actually used inside eval_buffer because of a define.
|
|
||||||
|
|
||||||
Bug: https://bugs.gentoo.org/875449
|
|
||||||
|
|
||||||
--- a/src/kmk/loadapi.c
|
|
||||||
+++ b/src/kmk/loadapi.c
|
|
||||||
@@ -20,6 +20,8 @@
|
|
||||||
#include "variable.h"
|
|
||||||
#include "dep.h"
|
|
||||||
|
|
||||||
+#include <string.h>
|
|
||||||
+
|
|
||||||
/* Allocate a buffer in our context, so we can free it. */
|
|
||||||
char *
|
|
||||||
gmk_alloc (unsigned int len)
|
|
||||||
@@ -59,7 +61,7 @@
|
|
||||||
install_variable_buffer (&pbuf, &plen);
|
|
||||||
|
|
||||||
s = xstrdup (buffer);
|
|
||||||
- eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (strlen (s) /** @todo suboptimal */));
|
|
||||||
+ eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (strchr (s, 0) /** @todo suboptimal */));
|
|
||||||
free (s);
|
|
||||||
|
|
||||||
restore_variable_buffer (pbuf, plen);
|
|
||||||
Reference in New Issue
Block a user