XuNeo commented on code in PR #7820:
URL: https://github.com/apache/nuttx/pull/7820#discussion_r1043457683


##########
include/netdb.h:
##########
@@ -222,6 +222,8 @@ struct protoent
                             * alternative protocol names, terminated by a
                             * null pointer. */
   int        p_proto;      /* The protocol number. */
+  int        idx;          /* Index used by the local database, required

Review Comment:
   `uint8_t` is enough for `idx`, there is no doubt to change it.
   For `p_proto`, `int` is used in FreeBSD etc. impementation, should we keep 
it consistent?



-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to