]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Use -EINVAL instead of EINVAL as return value
authorJouni Malinen <j@w1.fi>
Sat, 25 Jul 2015 16:50:43 +0000 (19:50 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 Jul 2015 16:50:43 +0000 (19:50 +0300)
This is more consistent with other error cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/ctrl_iface.c

index 6be6c2ab5d3bdf98bb1b4059f0d937390c5a4b23..aa803533cf332725f6d3e7a3f7b07efb1ec1013a 100644 (file)
@@ -2586,7 +2586,7 @@ hostapd_global_ctrl_iface_fst_attach(struct hapd_interfaces *interfaces,
                }
        }
 
-       return EINVAL;
+       return -EINVAL;
 }
 
 
@@ -2608,7 +2608,7 @@ hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces,
                }
        }
 
-       return EINVAL;
+       return -EINVAL;
 }
 
 #endif /* CONFIG_FST */