aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/vlan_init.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2007-02-10 16:20:50 (GMT)
committerJouni Malinen <j@w1.fi>2007-02-10 16:20:50 (GMT)
commit3aac5bb6af9416480d8dc91d3c802a60249ca23a (patch)
tree05b1258754e84671fbb21fda88766981e1acf3fa /hostapd/vlan_init.c
parent339dbcfd7a69a4fcbbd7109520ffa6856d8d99b7 (diff)
downloadhostap-history-3aac5bb6af9416480d8dc91d3c802a60249ca23a.zip
hostap-history-3aac5bb6af9416480d8dc91d3c802a60249ca23a.tar.gz
hostap-history-3aac5bb6af9416480d8dc91d3c802a60249ca23a.tar.bz2
Use NULL, not 0, with pointer types.
Diffstat (limited to 'hostapd/vlan_init.c')
-rw-r--r--hostapd/vlan_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/vlan_init.c b/hostapd/vlan_init.c
index 590b2bc..5b7950f 100644
--- a/hostapd/vlan_init.c
+++ b/hostapd/vlan_init.c
@@ -636,7 +636,8 @@ full_dynamic_vlan_init(struct hostapd_data *hapd)
return NULL;
}
- if (eloop_register_read_sock(priv->s, vlan_event_receive, hapd, 0)) {
+ if (eloop_register_read_sock(priv->s, vlan_event_receive, hapd, NULL))
+ {
close(priv->s);
free(priv);
return NULL;