mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
Convert Samba3 to use the common lib/util/charset API
This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
This commit is contained in:
@ -766,7 +766,7 @@ static int net_conf_setparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
}
|
||||
param = talloc_strdup_lower(mem_ctx, argv[1]);
|
||||
param = strlower_talloc(mem_ctx, argv[1]);
|
||||
if (param == NULL) {
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
@ -818,7 +818,7 @@ static int net_conf_getparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
}
|
||||
param = talloc_strdup_lower(mem_ctx, argv[1]);
|
||||
param = strlower_talloc(mem_ctx, argv[1]);
|
||||
if (param == NULL) {
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
@ -868,7 +868,7 @@ static int net_conf_delparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
}
|
||||
param = talloc_strdup_lower(mem_ctx, argv[1]);
|
||||
param = strlower_talloc(mem_ctx, argv[1]);
|
||||
if (param == NULL) {
|
||||
d_printf("error: out of memory!\n");
|
||||
goto done;
|
||||
|
Reference in New Issue
Block a user