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

r2678: from_name and to_name aren't needed in smb_iconv_t

This commit is contained in:
Andrew Tridgell 2004-09-27 08:39:06 +00:00 committed by Gerald (Jerry) Carter
parent a87d3d1134
commit f3844cc0a5
2 changed files with 0 additions and 4 deletions

View File

@ -276,7 +276,6 @@ typedef struct {
size_t (*push)(void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
void *cd_direct, *cd_pull, *cd_push;
char *from_name, *to_name;
} *smb_iconv_t;
#include "lib/cmdline/popt_common.h"

View File

@ -187,9 +187,6 @@ smb_iconv_t smb_iconv_open(const char *tocode, const char *fromcode)
}
memset(ret, 0, sizeof(*ret));
ret->from_name = talloc_strdup(ret, fromcode);
ret->to_name = talloc_strdup(ret, tocode);
/* check for the simplest null conversion */
if (strcmp(fromcode, tocode) == 0) {
ret->direct = iconv_copy;