s3: Add some const
authorVolker Lendecke <vl@samba.org>
Fri, 25 Nov 2011 07:45:26 +0000 (08:45 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 25 Nov 2011 09:21:07 +0000 (10:21 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 25 10:21:07 CET 2011 on sn-devel-104

source3/include/proto.h
source3/libsmb/trustdom_cache.c

index 0228120cc6f8ae4a2a8eba1fc67655cd8d19cee8..2d61ef4a4ec7d929bd9e1699ba33a3b6af62a829 100644 (file)
@@ -1127,8 +1127,8 @@ WERROR map_werror_from_unix(int error);
 
 bool trustdom_cache_enable(void);
 bool trustdom_cache_shutdown(void);
-bool trustdom_cache_store(char* name, char* alt_name, const struct dom_sid *sid,
-                          time_t timeout);
+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 trustdom_cache_fetch_timestamp( void );
 bool trustdom_cache_store_timestamp( uint32 t, time_t timeout );
index 95ea3dad28c9c868ae9cb73805d6a04fb0632143..8789d30338448cf824fd8d333ab503e5bc0142a8 100644 (file)
@@ -100,8 +100,8 @@ static char* trustdom_cache_key(const char* name)
  *         false if store attempt failed
  **/
  
-bool trustdom_cache_store(char* name, char* alt_name, const struct dom_sid *sid,
-                          time_t timeout)
+bool trustdom_cache_store(const char *name, const char *alt_name,
+                         const struct dom_sid *sid, time_t timeout)
 {
        char *key, *alt_key;
        fstring sid_string;