diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 11:56:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:08 +0200 |
commit | 6cc61d63413d143bddcd6d252103ead7dbadcb7c (patch) | |
tree | d0b978b18c263b21289d2b76afeaf5ffc056f590 /source3 | |
parent | 0cd70ec169724c021bbae05432a02f0dbffd260f (diff) | |
download | samba-6cc61d63413d143bddcd6d252103ead7dbadcb7c.tar.gz samba-6cc61d63413d143bddcd6d252103ead7dbadcb7c.tar.bz2 samba-6cc61d63413d143bddcd6d252103ead7dbadcb7c.zip |
s3:net_time: expect const sockaddr_storage in cli_servertime()
We don't want to modify the value.
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_time.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c index 9b6293ed49..cc97412a8d 100644 --- a/source3/utils/net_time.c +++ b/source3/utils/net_time.c @@ -24,13 +24,15 @@ /* return the time on a server. This does not require any authentication */ -static time_t cli_servertime(const char *host, struct sockaddr_storage *pss, int *zone) +static time_t cli_servertime(const char *host, + const struct sockaddr_storage *dest_ss, + int *zone) { time_t ret = 0; struct cli_state *cli = NULL; NTSTATUS status; - status = cli_connect_nb(host, pss, 0, 0x20, lp_netbios_name(), + status = cli_connect_nb(host, dest_ss, 0, 0x20, lp_netbios_name(), Undefined, &cli); if (!NT_STATUS_IS_OK(status)) { fprintf(stderr, _("Can't contact server %s. Error %s\n"), |