Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
84631952
Commit
84631952
authored
Nov 02, 2014
by
Noah Misch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix win32setlocale.c const-related warnings.
Back-patch to 9.2, like commit
db29620d
.
parent
9522efda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/port/win32setlocale.c
src/port/win32setlocale.c
+8
-4
No files found.
src/port/win32setlocale.c
View file @
84631952
...
...
@@ -103,8 +103,8 @@ static const struct locale_map locale_map_result[] = {
#define MAX_LOCALE_NAME_LEN 100
static
char
*
map_locale
(
struct
locale_map
*
map
,
char
*
locale
)
static
c
onst
c
har
*
map_locale
(
const
struct
locale_map
*
map
,
const
char
*
locale
)
{
static
char
aliasbuf
[
MAX_LOCALE_NAME_LEN
];
int
i
;
...
...
@@ -167,7 +167,7 @@ map_locale(struct locale_map *map, char *locale)
char
*
pgwin32_setlocale
(
int
category
,
const
char
*
locale
)
{
c
har
*
argument
;
c
onst
char
*
argument
;
char
*
result
;
if
(
locale
==
NULL
)
...
...
@@ -178,8 +178,12 @@ pgwin32_setlocale(int category, const char *locale)
/* Call the real setlocale() function */
result
=
setlocale
(
category
,
argument
);
/*
* setlocale() is specified to return a "char *" that the caller is
* forbidden to modify, so casting away the "const" is innocuous.
*/
if
(
result
)
result
=
map_locale
(
locale_map_result
,
result
);
result
=
(
char
*
)
map_locale
(
locale_map_result
,
result
);
return
result
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment