mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Change structure field tolower to to_lower. The same for the toupper.
This commit is contained in:
parent
160dd8eb7b
commit
65fc10d2c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52819
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue