lib: Apply const to nt_time_to_unix_timespec
authorVolker Lendecke <vl@samba.org>
Wed, 18 Jun 2014 10:55:10 +0000 (10:55 +0000)
committerMichael Adam <obnox@samba.org>
Wed, 18 Jun 2014 14:35:26 +0000 (16:35 +0200)
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

lib/util/time.c
lib/util/time.h

index a09490a198634b3e822411d5c59a266b9efbd0a4..993a55af21e56f0c1ca1a994f3a5107be7bd046a 100644 (file)
@@ -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;
index b5302f84c2b314ce26c65dbdbe03faf077ca390a..bab82811aa984b31f5358aebed0f812ceee4c77a 100644 (file)
@@ -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);