You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2022/05/05 19:23:44 UTC

[incubator-nuttx] 05/05: esp32x/wlan: Fix error: increment of a boolean expression

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 45fb96c5081132f440bd9a47f1e78889190898e7
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu May 5 16:45:46 2022 +0800

    esp32x/wlan: Fix error: increment of a boolean expression
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/risc-v/src/esp32c3/esp32c3_wlan.c | 2 +-
 arch/xtensa/src/esp32/esp32_wlan.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/esp32c3_wlan.c b/arch/risc-v/src/esp32c3/esp32c3_wlan.c
index 9777557c72..ff25fd65fa 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_wlan.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_wlan.c
@@ -142,7 +142,7 @@ struct wlan_ops_s
 
 struct wlan_priv_s
 {
-  bool   ref;                   /* Reference count */
+  int    ref;                   /* Reference count */
 
   bool   ifup;                  /* true:ifup false:ifdown */
 
diff --git a/arch/xtensa/src/esp32/esp32_wlan.c b/arch/xtensa/src/esp32/esp32_wlan.c
index 6bf510b2ae..37368df2a7 100644
--- a/arch/xtensa/src/esp32/esp32_wlan.c
+++ b/arch/xtensa/src/esp32/esp32_wlan.c
@@ -140,7 +140,7 @@ struct wlan_ops
 
 struct wlan_priv_s
 {
-  bool   ref;                   /* Referernce count */
+  int    ref;                   /* Referernce count */
 
   bool   ifup;                  /* true:ifup false:ifdown */