diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-11 15:36:13 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-11 15:36:13 -0700 |
commit | cb5436bcc3b55e0c221fb6b3fa3133f149a64384 (patch) | |
tree | b9dfa7884d428eacacff1484fbe9499f62add189 /source3/web | |
parent | 58a0a60bd11f5d422c7e39497dc6cdb59e91c9af (diff) | |
download | samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.tar.gz samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.tar.bz2 samba-cb5436bcc3b55e0c221fb6b3fa3133f149a64384.zip |
Add const to the get_peer_addr() and get_socket_addr()
calls. Use the IPv6 varient for get_peer_addr().
Jeremy.
(This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 9af4337a21..0e362ea245 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -633,7 +633,7 @@ const char *cgi_pathinfo(void) /*************************************************************************** return the hostname of the client ***************************************************************************/ -char *cgi_remote_host(void) +const char *cgi_remote_host(void) { if (inetd_server) { return get_peer_name(1,False); @@ -644,7 +644,7 @@ char *cgi_remote_host(void) /*************************************************************************** return the hostname of the client ***************************************************************************/ -char *cgi_remote_addr(void) +const char *cgi_remote_addr(void) { if (inetd_server) { return get_peer_addr(1); |