Remove unnecessary wpa_event_type typedef
authorJouni Malinen <j@w1.fi>
Sun, 3 Jan 2010 11:10:12 +0000 (13:10 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Jan 2010 11:10:12 +0000 (13:10 +0200)
src/ap/drv_callbacks.c
src/drivers/driver.h
wpa_supplicant/events.c

index 9142104..ef0b225 100644 (file)
@@ -343,7 +343,7 @@ static int hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa,
 }
 
 
-void wpa_supplicant_event(void *ctx, wpa_event_type event,
+void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                          union wpa_event_data *data)
 {
        struct hostapd_data *hapd = ctx;
index 7cf3c70..51c3356 100644 (file)
@@ -1523,7 +1523,7 @@ struct wpa_driver_ops {
 /**
  * enum wpa_event_type - Event type for wpa_supplicant_event() calls
  */
-typedef enum wpa_event_type {
+enum wpa_event_type {
        /**
         * EVENT_ASSOC - Association completed
         *
@@ -1734,8 +1734,8 @@ typedef enum wpa_event_type {
         * received. Information about the received frame is included in
         * union wpa_event_data::rx_probe_req.
         */
-       EVENT_RX_PROBE_REQ,
-} wpa_event_type;
+       EVENT_RX_PROBE_REQ
+};
 
 
 /**
@@ -2020,7 +2020,7 @@ union wpa_event_data {
  * Driver wrapper code should call this function whenever an event is received
  * from the driver.
  */
-void wpa_supplicant_event(void *ctx, wpa_event_type event,
+void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                          union wpa_event_data *data);
 
 /**
index 9d6e2ff..4bd9da8 100644 (file)
@@ -1412,7 +1412,7 @@ static void wpa_supplicant_event_ibss_rsn_start(struct wpa_supplicant *wpa_s,
 #endif /* CONFIG_IBSS_RSN */
 
 
-void wpa_supplicant_event(void *ctx, wpa_event_type event,
+void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                          union wpa_event_data *data)
 {
        struct wpa_supplicant *wpa_s = ctx;