diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-18 10:55:10 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-06-18 16:35:26 +0200 |
commit | 32b45bfa9856801b5f5518392fed65ddcaa5e053 (patch) | |
tree | 14480bc4a2f1d7f2e5117d045b5812afdc83ed24 | |
parent | fe14a3f7582e499a9f632d31937dae9bf61fd342 (diff) | |
download | samba-32b45bfa9856801b5f5518392fed65ddcaa5e053.tar.gz samba-32b45bfa9856801b5f5518392fed65ddcaa5e053.tar.xz samba-32b45bfa9856801b5f5518392fed65ddcaa5e053.zip |
lib: Apply const to nt_time_to_unix_timespec
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Jun 18 16:35:26 CEST 2014 on sn-devel-104
-rw-r--r-- | lib/util/time.c | 2 | ||||
-rw-r--r-- | lib/util/time.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/time.c b/lib/util/time.c index a09490a198..993a55af21 100644 --- a/lib/util/time.c +++ b/lib/util/time.c @@ -784,7 +784,7 @@ _PUBLIC_ int get_time_zone(time_t t) return tm_diff(&tm_utc,tm); } -struct timespec nt_time_to_unix_timespec(NTTIME *nt) +struct timespec nt_time_to_unix_timespec(const NTTIME *nt) { int64_t d; struct timespec ret; diff --git a/lib/util/time.h b/lib/util/time.h index b5302f84c2..bab82811aa 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -298,7 +298,7 @@ bool nt_time_equal(NTTIME *t1, NTTIME *t2); void interpret_dos_date(uint32_t date,int *year,int *month,int *day,int *hour,int *minute,int *second); -struct timespec nt_time_to_unix_timespec(NTTIME *nt); +struct timespec nt_time_to_unix_timespec(const NTTIME *nt); time_t convert_timespec_to_time_t(struct timespec ts); |