From ff5f767d0e31ea0c5311ce48d8e0387eebd84ce8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 11 Dec 2010 14:16:51 +0100 Subject: s3: Remove two pointless slprintf calls --- source3/libsmb/samlogon_cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 2e7a9c6b03..52fbe04351 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -102,7 +102,7 @@ bool netsamlogon_cache_shutdown(void) void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3) { struct dom_sid user_sid; - fstring keystr, tmp; + fstring keystr; if (!info3) { return; @@ -117,7 +117,7 @@ void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3) sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid); /* Prepare key as DOMAIN-SID/USER-RID string */ - slprintf(keystr, sizeof(keystr), "%s", sid_to_fstring(tmp, &user_sid)); + sid_to_fstring(keystr, &user_sid); DEBUG(10,("netsamlogon_clear_cached_user: SID [%s]\n", keystr)); @@ -132,7 +132,7 @@ void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3) bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3) { TDB_DATA data; - fstring keystr, tmp; + fstring keystr; bool result = false; struct dom_sid user_sid; time_t t = time(NULL); @@ -154,7 +154,7 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3) sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid); /* Prepare key as DOMAIN-SID/USER-RID string */ - slprintf(keystr, sizeof(keystr), "%s", sid_to_fstring(tmp, &user_sid)); + sid_to_fstring(keystr, &user_sid); DEBUG(10,("netsamlogon_cache_store: SID [%s]\n", keystr)); -- cgit