[PATCH] lib: Apply const to nt_time_to_unix_timespec

Michael Adam obnox at samba.org
Wed Jun 18 06:07:00 MDT 2014


Pushed to autobuild

On 2014-06-18 at 12:56 +0200, Volker Lendecke wrote:
> Hi!
> 
> Review&push would be appreciated.
> 
> Thanks,
> 
> Volker
> 
> -- 
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de

> From 861be8e72fdb94ed2d8dc9129758e06e5f541bc8 Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Wed, 18 Jun 2014 10:55:10 +0000
> Subject: [PATCH] lib: Apply const to nt_time_to_unix_timespec
> 
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
>  lib/util/time.c | 2 +-
>  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 a09490a..993a55a 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 b5302f8..bab8281 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);
>  
> -- 
> 1.8.1.2
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140618/d5110bbd/attachment.pgp>


More information about the samba-technical mailing list