You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/13 11:13:35 UTC

[GitHub] [incubator-nuttx-apps] normanr opened a new pull request, #1196: wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error

normanr opened a new pull request, #1196:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1196

   ## Summary
   Similar to #1134: This fixes the sta_mode field data type which causes:
   ```c
   src/wapi.c: In function 'wapi_save_config_cmd':
   src/wapi.c:866:38: warning: passing argument 3 of 'wapi_get_mode' from incompatible pointer type [-Wincompatible-pointer-types]
     866 |   ret = wapi_get_mode(sock, argv[0], &conf.sta_mode);
         |                                      ^~~~~~~~~~~~~~
         |                                      |
         |                                      uint8_t * {aka unsigned char *}
   In file included from src/wapi.c:55:
   ../apps/include/wireless/wapi.h:508:41: note: expected 'enum wapi_mode_e *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
     508 |                   FAR enum wapi_mode_e *mode);
         |                       ~~~~~~~~~~~~~~~~~~^~~~
   ```
   
   ## Impact
   Make `wireless/wapi` compile without warnings.
   
   ## Testing
   Built wapi, and used it to save_config (which was broken without the fix from #1134 and continues to work with this fix)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #1196: wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #1196:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1196


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org