patacongo removed a comment on issue #370: net: socket: Introduce 
net_clear_sinzero()
URL: https://github.com/apache/incubator-nuttx/pull/370#issuecomment-590670787
 
 
   The OS must **NEVER** modify an input sockaddr type (of an variety).  The 
socketaddr type is usually passed as a FAR const struct sockaddr * and the OS 
is not permitted to modify read-only user values.  The input sockaddr 
structures must **always** be modify by the application logic.  The input 
sockaddr structures may, very possibly, reside in read-only memory.
   
   Returned sockaddr structures are not const and, of course, can be modified 
by the OS.
   
   The const attribute is a "contract" that does not permit modification of the 
input value by the OS.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to