summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-17 00:44:31 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-17 15:57:10 +0200
commitf4be25579557eb2eb52d7236a5c47435b425b913 (patch)
treef47c5c18c34288a4f58863759168e051eed9d12b
parent62c44b1600e4d89dffaa04936121e8568bb41cb3 (diff)
downloadhardware_replicant_libsamsung-ril-f4be25579557eb2eb52d7236a5c47435b425b913.tar.gz
hardware_replicant_libsamsung-ril-f4be25579557eb2eb52d7236a5c47435b425b913.tar.bz2
hardware_replicant_libsamsung-ril-f4be25579557eb2eb52d7236a5c47435b425b913.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 7f7439a..647f9b8 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) {