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

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

commit 66650f223b49964731861d7109d3d9d0a2c28fd7
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Thu Aug 12 16:51:52 2021 +0900

    netlib: Change the type of url_s:port to uint16_t
    
    uint16_t is what's used in netlib and webclient in most of places.
    There is a static analizer complaining on the type mismatch.
    (It's actually harmless as far as I understand though.)
---
 include/netutils/netlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h
index e58d2aa..03764ef 100644
--- a/include/netutils/netlib.h
+++ b/include/netutils/netlib.h
@@ -221,7 +221,7 @@ struct url_s
 #endif
   FAR char *host;
   int       hostlen;
-  int       port;
+  uint16_t  port;
   FAR char *path;
   int       pathlen;
 #if 0 /* not yet */

Reply via email to