diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-08-23 11:33:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-08-24 09:27:04 -0700 |
commit | ba70d48951fb925fb3082d81afb08c330333aa51 (patch) | |
tree | 4a5898a86da5fb7e6002c66fb7ab9118a6939417 /doc | |
parent | 63b65a20706def951dd25e531949b7bc556419eb (diff) |
Add const qualifiers to TRANS(Connect) args
Also required constifying UnixHostReallyLocal, since SocketUNIXConnect
passes the host arg through to it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/xtrans.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/xtrans.xml b/doc/xtrans.xml index 2e16e79..5c99629 100644 --- a/doc/xtrans.xml +++ b/doc/xtrans.xml @@ -240,8 +240,8 @@ typedef struct _Xtransport { int (*Connect)( XtransConnInfo, /* connection */ - char *, /* host */ - char * /* port */ + const char *, /* host */ + const char * /* port */ ); int (*BytesReadable)( @@ -542,7 +542,7 @@ new opaque transport connection object upon success, <funcprototype> <funcdef>int <function>TRANS(Connect)</function></funcdef> <paramdef>XtransConnInfo <parameter>connection</parameter></paramdef> - <paramdef>char *<parameter>address</parameter></paramdef> + <paramdef>const char *<parameter>address</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -987,8 +987,8 @@ structure describing the new endpoint is returned from this function <funcprototype> <funcdef>int <function>Connect</function></funcdef> <paramdef>struct _Xtransport *<parameter>thistrans</parameter></paramdef> - <paramdef>char *<parameter>host</parameter></paramdef> - <paramdef>char *<parameter>port</parameter></paramdef> + <paramdef>const char *<parameter>host</parameter></paramdef> + <paramdef>const char *<parameter>port</parameter></paramdef> </funcprototype> </funcsynopsis> <para> |