diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 00:44:31 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-06-20 16:17:26 +0200 |
commit | 4b218bb34bd2b6b382b5e1e85510fe86a1136c58 (patch) | |
tree | 055806a4247bc34c96ae3babfd1be79a23aaddeb | |
parent | e5eedc5d6d0f186f01778bfe51ba58a1656686f6 (diff) | |
download | hardware_replicant_libsamsung-ril-4b218bb34bd2b6b382b5e1e85510fe86a1136c58.tar.gz hardware_replicant_libsamsung-ril-4b218bb34bd2b6b382b5e1e85510fe86a1136c58.tar.bz2 hardware_replicant_libsamsung-ril-4b218bb34bd2b6b382b5e1e85510fe86a1136c58.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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |