[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Note byte-order on result for parse_addr_port()
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv27731/src/common
Modified Files:
util.c
Log Message:
Note byte-order on result for parse_addr_port()
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- util.c 12 Oct 2004 15:48:30 -0000 1.140
+++ util.c 12 Oct 2004 16:02:15 -0000 1.141
@@ -2032,9 +2032,9 @@
* <b>address</b> is provided, set *<b>address</b> to a copy of the
* host portion of the string. If <b>addr</b> is provided, try to
* resolve the host portion of the string and store it into
- * *<b>addr</b>. If <b>port</b> is provided, store the port number
- * into *<b>port</b>, or 0 if no port is given. Return 0 on success,
- * -1 on failure.
+ * *<b>addr</b> (in network byte order). If <b>port</b> is provided,
+ * store the port number into *<b>port</b>, or 0 if no port is given.
+ * Return 0 on success, -1 on failure.
*/
int
parse_addr_port(const char *addrport, char **address, uint32_t *addr,