mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 04:49:58 +00:00
yp-tools: Fix build with gcc7
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
|||||||
|
From 71fdfdfcea2bfa5f522512366bfcdf95f861ecc6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Sun, 23 Apr 2017 23:44:37 -0700
|
||||||
|
Subject: [PATCH] lib/yp_all_host.c: Fix build with gcc 7
|
||||||
|
|
||||||
|
fixes
|
||||||
|
|
||||||
|
| ../../../../../../../workspace/sources/yp-tools/lib/yp_all_host.c: In function 'yp_all_host':
|
||||||
|
| ../../../../../../../workspace/sources/yp-tools/lib/yp_all_host.c:109:30: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
|
||||||
|
| inmap == NULL || inmap == '\0')
|
||||||
|
| ^~
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
lib/yp_all_host.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/yp_all_host.c b/lib/yp_all_host.c
|
||||||
|
index 59cf236..4a07a7e 100644
|
||||||
|
--- a/lib/yp_all_host.c
|
||||||
|
+++ b/lib/yp_all_host.c
|
||||||
|
@@ -106,7 +106,7 @@ yp_all_host (const char *indomain, const char *inmap,
|
||||||
|
|
||||||
|
if (hostname == NULL || hostname[0] == '\0' ||
|
||||||
|
indomain == NULL || indomain[0] == '\0' ||
|
||||||
|
- inmap == NULL || inmap == '\0')
|
||||||
|
+ inmap == NULL || inmap[0] == '\0')
|
||||||
|
return YPERR_BADARGS;
|
||||||
|
|
||||||
|
res = YPERR_YPERR;
|
||||||
|
--
|
||||||
|
2.12.2
|
||||||
|
|
||||||
@@ -15,7 +15,8 @@ SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \
|
|||||||
file://domainname.service \
|
file://domainname.service \
|
||||||
file://yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch \
|
file://yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch \
|
||||||
file://alignment-cheat.patch \
|
file://alignment-cheat.patch \
|
||||||
"
|
file://0001-lib-yp_all_host.c-Fix-build-with-gcc-7.patch \
|
||||||
|
"
|
||||||
SRC_URI[md5sum] = "acebeecc11a73fb8097503670344834c"
|
SRC_URI[md5sum] = "acebeecc11a73fb8097503670344834c"
|
||||||
SRC_URI[sha256sum] = "812be817df3d4c25813552be336c6c6ad5aedaf65611b81af3ad9f98fb3c2e50"
|
SRC_URI[sha256sum] = "812be817df3d4c25813552be336c6c6ad5aedaf65611b81af3ad9f98fb3c2e50"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user