aboutsummaryrefslogtreecommitdiff
path: root/security/wpa_supplicant
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-05-16 02:41:24 +0000
committerCy Schubert <cy@FreeBSD.org>2019-05-16 02:41:24 +0000
commitdbd6a504d9556360dd6eada478bb88a9a4be4798 (patch)
tree32f06ca894e597a0746d3df772e4f2f804a19400 /security/wpa_supplicant
parent4c5ac0f437d8d9c9a69abf7003c451fde261e238 (diff)
downloadports-dbd6a504d9556360dd6eada478bb88a9a4be4798.tar.gz
ports-dbd6a504d9556360dd6eada478bb88a9a4be4798.zip
Remove the pleonastic initialization and test for eloop_initialized.
This change has no functional effect on the resulting package therefore a PORTREVISION bump is not necessary. Discovered while discussing wpa_supplicant with lwhsu@ today.
Notes
Notes: svn path=/head/; revision=501762
Diffstat (limited to 'security/wpa_supplicant')
-rw-r--r--security/wpa_supplicant/files/patch-wpa__supplicant_wpa__priv.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__priv.c b/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__priv.c
deleted file mode 100644
index 3fb38135c859..000000000000
--- a/security/wpa_supplicant/files/patch-wpa__supplicant_wpa__priv.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- wpa_supplicant/wpa_priv.c.orig 2015-03-15 17:30:39 UTC
-+++ wpa_supplicant/wpa_priv.c
-@@ -952,6 +952,7 @@ static void usage(void)
- int main(int argc, char *argv[])
- {
- int c, i;
-+ int eloop_initialized = 0;
- int ret = -1;
- char *pid_file = NULL;
- int daemonize = 0;
-@@ -997,6 +998,7 @@ int main(int argc, char *argv[])
- wpa_printf(MSG_ERROR, "Failed to initialize event loop");
- goto out;
- }
-+ else eloop_initialized = 1;
-
- for (i = optind; i < argc; i++) {
- wpa_printf(MSG_DEBUG, "Adding driver:interface %s", argv[i]);
-@@ -1023,7 +1025,8 @@ out:
- wpa_priv_interface_deinit(prev);
- }
-
-- eloop_destroy();
-+ if (eloop_initialized)
-+ eloop_destroy();
-
- os_daemonize_terminate(pid_file);
- os_free(pid_file);