mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 15:50:26 +01:00
The statement
g_return_val_if_reached (NM_MODEM_IP_TYPE_UNKNOWN);
was wrong, because the return type is 'const char *'.
But just refactor nm_modem_ip_type_to_string() to get rid of
the static table and make it a switch statement.
Fixes:
|
||
|---|---|---|
| .. | ||
| exports.ver | ||
| Makefile.am | ||
| nm-device-modem.c | ||
| nm-device-modem.h | ||
| nm-modem-broadband.c | ||
| nm-modem-broadband.h | ||
| nm-modem-manager.c | ||
| nm-modem-manager.h | ||
| nm-modem.c | ||
| nm-modem.h | ||
| nm-wwan-factory.c | ||
| nm-wwan-factory.h | ||
| wwan-exports.ver | ||