summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-05-07 15:58:03 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-24 16:26:33 +0200
commit90022839e5451c4dc2a54e81bc21cb80c83e1e13 (patch)
tree1046646515a124a36005e951e1824a12c9002c37
parenta9d6acc088be7d5e027531b7377f25850aab02b3 (diff)
downloadhardware_replicant_libsamsung-ril-90022839e5451c4dc2a54e81bc21cb80c83e1e13.tar.gz
hardware_replicant_libsamsung-ril-90022839e5451c4dc2a54e81bc21cb80c83e1e13.tar.bz2
hardware_replicant_libsamsung-ril-90022839e5451c4dc2a54e81bc21cb80c83e1e13.zip
Fix implicit declaration of ipv4NetmaskToPrefixLength
Rationale for using extern: --------------------------- The ipv4NetmaskToPrefixLength function is implemnted in libnetutils/ifc_utils.c inside the android_system_core repository[1]. In the lineage-16.0 branch[2]: - ipv4NetmaskToPrefixLength is not declared in any headers in this repository. - In the same repository, libnetutils/dhcpclient.c uses extern for the declaration of ipv4NetmaskToPrefixLength. References: ----------- [1]https://github.com/LineageOS/android_system_core [2]At the time of writing it was at the following commit: e7f238619 healthd: make periodic battery status a debug message Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 72f0187..5fedf92 100644
--- a/data.c
+++ b/data.c
@@ -28,6 +28,8 @@
#include <samsung-ril.h>
#include <utils.h>
+extern int ipv4NetmaskToPrefixLength(in_addr_t mask);
+
int ipc2ril_gprs_fail_cause(unsigned char fail_cause)
{
switch (fail_cause) {