diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-23 02:16:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-23 02:16:51 +0000 |
commit | 3060d4aa1d5586c085aaec108ac6ced094304322 (patch) | |
tree | ad9dc1197087fcd5a74e9098f42f9f5706eb971d /authenticate.c | |
parent | 1347d5126a4d89718544d976f64943dfa93dd8c4 (diff) | |
download | rsync-3060d4aa1d5586c085aaec108ac6ced094304322.tar.gz |
handle systems that don't take a 2nd argument to gettimeofday()
Diffstat (limited to 'authenticate.c')
-rw-r--r-- | authenticate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/authenticate.c b/authenticate.c index 50c10aae..f87fceef 100644 --- a/authenticate.c +++ b/authenticate.c @@ -56,7 +56,7 @@ static void gen_challenge(char *addr, char *challenge) memset(input, 0, sizeof(input)); strlcpy((char *)input, addr, 17); - gettimeofday(&tv, NULL); + sys_gettimeofday(&tv); SIVAL(input, 16, tv.tv_sec); SIVAL(input, 20, tv.tv_usec); SIVAL(input, 24, getpid()); |