OSDN Git Service

Remove compilation warnings
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 1 Feb 2010 18:37:32 +0000 (10:37 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Mon, 1 Feb 2010 18:37:32 +0000 (10:37 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/src/common/wpa_ctrl.c
wpa_supplicant/src/common/wpa_ctrl.h

index 37c6ad0..e3c3d21 100644 (file)
@@ -184,7 +184,7 @@ void wpa_ctrl_close(struct wpa_ctrl *ctrl)
  * event of crashes that prevented them from being removed as part
  * of the normal orderly shutdown.
  */
-void wpa_ctrl_cleanup()
+void wpa_ctrl_cleanup(void)
 {
     DIR *dir;
     struct dirent entry;
@@ -218,7 +218,7 @@ void wpa_ctrl_cleanup()
 
 #else /* CONFIG_CTRL_IFACE_UNIX */
 #ifdef ANDROID
-void wpa_ctrl_cleanup()
+void wpa_ctrl_cleanup(void)
 {
 }
 #endif /* ANDROID */
index c2662b6..f3304f0 100644 (file)
@@ -214,7 +214,7 @@ int wpa_ctrl_get_fd(struct wpa_ctrl *ctrl);
  * event of crashes that prevented them from being removed as part
  * of the normal orderly shutdown.
  */
-void wpa_ctrl_cleanup();
+void wpa_ctrl_cleanup(void);
 #endif  /* ANDROID */
 
 #ifdef CONFIG_CTRL_IFACE_UDP