mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 21:40:13 +01:00
libnm-util: minor cleanups for nm_utils_iface_valid_name()
This commit is contained in:
parent
b46508b5c6
commit
81ff3b0f44
1 changed files with 3 additions and 1 deletions
|
|
@ -2593,8 +2593,10 @@ nm_utils_hwaddr_ntoa (gconstpointer addr, int type)
|
|||
* Returns: %TRUE if interface name is valid, otherwise %FALSE is returned.
|
||||
*/
|
||||
gboolean
|
||||
nm_utils_iface_valid_name(const char *name)
|
||||
nm_utils_iface_valid_name (const char *name)
|
||||
{
|
||||
g_return_val_if_fail (name != NULL, FALSE);
|
||||
|
||||
if (*name == '\0')
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue