Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 1/2] device: Fix init return type
@ 2020-04-17 17:20 Tim Kourt
  2020-04-17 17:20 ` [PATCH 2/2] station: " Tim Kourt
  2020-04-17 17:23 ` [PATCH 1/2] device: " Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Kourt @ 2020-04-17 17:20 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index c24d7ed1..171a11b6 100644
--- a/src/device.c
+++ b/src/device.c
@@ -420,7 +420,7 @@ static int device_init(void)
 					IWD_DEVICE_INTERFACE,
 					setup_device_interface,
 					destroy_device_interface, false))
-		return false;
+		return -EPERM;
 
 	netdev_watch = netdev_watch_add(device_netdev_notify, NULL, NULL);
 
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] station: Fix init return type
  2020-04-17 17:20 [PATCH 1/2] device: Fix init return type Tim Kourt
@ 2020-04-17 17:20 ` Tim Kourt
  2020-04-17 17:23 ` [PATCH 1/2] device: " Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Kourt @ 2020-04-17 17:20 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

---
 src/station.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/station.c b/src/station.c
index d57a0f8d..3b3bb30a 100644
--- a/src/station.c
+++ b/src/station.c
@@ -3250,7 +3250,7 @@ static int station_init(void)
 				&anqp_disabled))
 		anqp_disabled = true;
 
-	return true;
+	return 0;
 }
 
 static void station_exit(void)
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] device: Fix init return type
  2020-04-17 17:20 [PATCH 1/2] device: Fix init return type Tim Kourt
  2020-04-17 17:20 ` [PATCH 2/2] station: " Tim Kourt
@ 2020-04-17 17:23 ` Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2020-04-17 17:23 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

Hi Tim,

On 4/17/20 12:20 PM, Tim Kourt wrote:
> ---
>   src/device.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Both applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-17 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-17 17:20 [PATCH 1/2] device: Fix init return type Tim Kourt
2020-04-17 17:20 ` [PATCH 2/2] station: " Tim Kourt
2020-04-17 17:23 ` [PATCH 1/2] device: " Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox