Change structure field tolower to to_lower. The same for the toupper.

This commit is contained in:
Boris Popov 1999-11-03 03:17:31 +00:00
parent 160dd8eb7b
commit 65fc10d2c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52819

View file

@ -159,15 +159,15 @@ int
ncp_nls_setlocale(char *name) {
int i;
ncp_nls.tolower = def2lower;
ncp_nls.toupper = def2upper;
ncp_nls.to_lower = def2lower;
ncp_nls.to_upper = def2upper;
if (setlocale(LC_CTYPE, name) == NULL) {
fprintf(stderr, "Can't set locale '%s'\n", name);
return EINVAL;
}
for (i = 0; i < 256; i++) {
ncp_nls.tolower[i] = tolower(i);
ncp_nls.toupper[i] = toupper(i);
ncp_nls.to_lower[i] = tolower(i);
ncp_nls.to_upper[i] = toupper(i);
}
return 0;
}