From: Volker Lendecke Date: Tue, 24 Jan 2017 20:30:40 +0000 (+0100) Subject: libsmb: Make a few functions static X-Git-Tag: tdb-1.3.13~468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9606514d011929db0a9d4ebe16ccb427651deb2;p=thirdparty%2Fsamba.git libsmb: Make a few functions static Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/include/proto.h b/source3/include/proto.h index acd01274e40..d0951262071 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -850,8 +850,6 @@ WERROR map_werror_from_unix(int error); bool trustdom_cache_store(const char *name, const char *alt_name, const struct dom_sid *sid, time_t timeout); bool trustdom_cache_fetch(const char* name, struct dom_sid* sid); -uint32_t trustdom_cache_fetch_timestamp( void ); -bool trustdom_cache_store_timestamp( uint32_t t, time_t timeout ); void trustdom_cache_flush(void); void update_trustdom_cache( void ); diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index 587e1d22db3..82f0add076a 100644 --- a/source3/libsmb/trustdom_cache.c +++ b/source3/libsmb/trustdom_cache.c @@ -157,7 +157,7 @@ bool trustdom_cache_fetch(const char* name, struct dom_sid* sid) fetch the timestamp from the last update *******************************************************************/ -uint32_t trustdom_cache_fetch_timestamp( void ) +static uint32_t trustdom_cache_fetch_timestamp(void) { char *value = NULL; time_t timeout; @@ -179,7 +179,7 @@ uint32_t trustdom_cache_fetch_timestamp( void ) store the timestamp from the last update *******************************************************************/ -bool trustdom_cache_store_timestamp( uint32_t t, time_t timeout ) +static bool trustdom_cache_store_timestamp(uint32_t t, time_t timeout) { fstring value;