1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Remove a static

(This used to be commit 85a84f72ff)
This commit is contained in:
Volker Lendecke 2007-11-24 16:32:38 +01:00 committed by Jeremy Allison
parent d2c2635a28
commit 5c6f961447

View File

@ -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 */