(krb5_timeofday): use krb5_timestamp' instead of int32_t'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7859 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-06 05:21:53 +00:00
parent 38ef6e56ea
commit 78e8e4627e

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -35,14 +35,22 @@
RCSID("$Id$");
/*
* return ``corrected'' time in `timeret'.
*/
krb5_error_code
krb5_timeofday (krb5_context context,
int32_t *timeret)
krb5_timestamp *timeret)
{
*timeret = time(NULL) + context->kdc_sec_offset;
return 0;
}
/*
* like gettimeofday but with time correction to the KDC
*/
krb5_error_code
krb5_us_timeofday (krb5_context context,
int32_t *sec,