mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
Remove a static
(This used to be commit 85a84f72ffc440fb71744cb72de2dba07793123c)
This commit is contained in:
parent
d2c2635a28
commit
5c6f961447
@ -41,7 +41,7 @@ struct {
|
|||||||
|
|
||||||
static const char *get_us_error_code(enum usershare_err us_err)
|
static const char *get_us_error_code(enum usershare_err us_err)
|
||||||
{
|
{
|
||||||
static pstring out;
|
char *result;
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
while (us_errs[idx].us_errstr != NULL) {
|
while (us_errs[idx].us_errstr != NULL) {
|
||||||
@ -51,8 +51,10 @@ static const char *get_us_error_code(enum usershare_err us_err)
|
|||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
slprintf(out, sizeof(out), "Usershare error code (0x%x)", (unsigned int)us_err);
|
result = talloc_asprintf(talloc_tos(), "Usershare error code (0x%x)",
|
||||||
return out;
|
(unsigned int)us_err);
|
||||||
|
SMB_ASSERT(result != NULL);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The help subsystem for the USERSHARE subcommand */
|
/* The help subsystem for the USERSHARE subcommand */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user