SHA256
1
0
forked from pool/osmo-iuh
osmo-iuh/0001-fix-compiler-warning-implicit-function-declaration-i.patch

29 lines
705 B
Diff

From 1ce7ac8cb973e0b694c52659429f992e0b56e359 Mon Sep 17 00:00:00 2001
From: Martin Hauke <mardnh@gmx.de>
Date: Fri, 30 Dec 2016 11:12:06 +0100
Subject: [PATCH] fix compiler warning: implicit-function-declaration in
hnbgw_vty.c
hnbgw_vty.c:233:2: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
if (addr && (strcmp(addr, HNBGW_LOCAL_IP_DEFAULT) != 0))
---
src/hnbgw_vty.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c
index 59871da..e40b077 100644
--- a/src/hnbgw_vty.c
+++ b/src/hnbgw_vty.c
@@ -18,6 +18,8 @@
*
*/
+#include <string.h>
+
#include <osmocom/vty/command.h>
#include <osmocom/iuh/vty.h>
--
2.6.6