[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-367-g85a84f7

Jeremy Allison jra at samba.org
Sun Nov 25 02:11:50 GMT 2007


The branch, v3-2-test has been updated
       via  85a84f72ffc440fb71744cb72de2dba07793123c (commit)
      from  49949f0b85007c7c2b3c340c12f3d18909862135 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 85a84f72ffc440fb71744cb72de2dba07793123c
Author: Volker Lendecke <vl at sernet.de>
Date:   Sat Nov 24 16:32:38 2007 +0100

    Remove a static

-----------------------------------------------------------------------

Summary of changes:
 source/utils/net_usershare.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/utils/net_usershare.c b/source/utils/net_usershare.c
index 658c008..19fa8fa 100644
--- a/source/utils/net_usershare.c
+++ b/source/utils/net_usershare.c
@@ -41,7 +41,7 @@ struct {
 
 static const char *get_us_error_code(enum usershare_err us_err)
 {
-	static pstring out;
+	char *result;
 	int idx = 0;
 
 	while (us_errs[idx].us_errstr != NULL) {
@@ -51,8 +51,10 @@ static const char *get_us_error_code(enum usershare_err us_err)
 		idx++;
 	}
 
-	slprintf(out, sizeof(out), "Usershare error code (0x%x)", (unsigned int)us_err);
-	return out;
+	result = talloc_asprintf(talloc_tos(), "Usershare error code (0x%x)",
+				 (unsigned int)us_err);
+	SMB_ASSERT(result != NULL);
+	return result;
 }
 
 /* The help subsystem for the USERSHARE subcommand */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list