diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-29 15:57:56 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-29 15:57:56 +0100 |
commit | a113de71068406b832652220ae66f86698d5f6d5 (patch) | |
tree | d1d2d835891da341069560b60db0c49ac66b58f7 /src | |
parent | 4ad520e849e88b7b8246f49c2b20adcbb9dab231 (diff) |
owfd: p2pd: rename owfd_p2pd_wpa_event -> wpa_event
Avoid the global owfd_p2pd_* prefix as this is a sub-module inside of
owfd_p2pd_interface_*. As this prefix is too long, just use wpa_event.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/p2pd_interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/p2pd_interface.c b/src/p2pd_interface.c index 6a86376..7d3a6c0 100644 --- a/src/p2pd_interface.c +++ b/src/p2pd_interface.c @@ -47,8 +47,8 @@ struct owfd_p2pd_interface { pid_t pid; }; -static void owfd_p2pd_wpa_event(struct owfd_wpa_ctrl *wpa, void *buf, - size_t len, void *data); +static void wpa_event(struct owfd_wpa_ctrl *wpa, void *buf, + size_t len, void *data); /* * Execute wpa_supplicant. This is called after fork(). It shall initialize the @@ -204,7 +204,7 @@ static int wait_for_wpa(struct owfd_p2pd_interface *iface, } /* try opening socket and bail out if we succeed */ - r = owfd_wpa_ctrl_open(iface->wpa, file, owfd_p2pd_wpa_event); + r = owfd_wpa_ctrl_open(iface->wpa, file, wpa_event); if (r >= 0) goto done; @@ -238,7 +238,7 @@ static int wait_for_wpa(struct owfd_p2pd_interface *iface, } /* retry opening socket */ - r = owfd_wpa_ctrl_open(iface->wpa, file, owfd_p2pd_wpa_event); + r = owfd_wpa_ctrl_open(iface->wpa, file, wpa_event); if (r >= 0) goto done; @@ -421,7 +421,7 @@ int owfd_p2pd_interface_dispatch_chld(struct owfd_p2pd_interface *iface, return OWFD_P2PD_EP_QUIT; } -static void owfd_p2pd_wpa_event(struct owfd_wpa_ctrl *wpa, void *buf, - size_t len, void *data) +static void wpa_event(struct owfd_wpa_ctrl *wpa, void *buf, + size_t len, void *data) { } |