diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 00:44:31 +0200 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 15:57:10 +0200 |
| commit | f4be25579557eb2eb52d7236a5c47435b425b913 (patch) | |
| tree | f47c5c18c34288a4f58863759168e051eed9d12b | |
| parent | 62c44b1600e4d89dffaa04936121e8568bb41cb3 (diff) | |
| download | hardware_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.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) { |
