Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 87e701b

Browse files
committed
Clean up const-vs-not-const compiler warning in MULTIBYTE code.
'Twas my fault, I think.
1 parent a2b5fac commit 87e701b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backend/utils/mb/variable.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
* This file contains some public functions
33
* related to show/set/reset variable commands.
44
* Tatsuo Ishii
5-
* $Id: variable.c,v 1.6 2000/01/18 13:44:48 ishii Exp $
5+
* $Id: variable.c,v 1.7 2000/04/20 22:40:18 tgl Exp $
66
*/
77

88
#include "postgres.h"
99
#include "miscadmin.h"
1010
#include "mb/pg_wchar.h"
1111

1212
bool
13-
parse_client_encoding(const char *value)
13+
parse_client_encoding(char *value)
1414
{
1515
int encoding;
1616

@@ -60,7 +60,7 @@ reset_client_encoding()
6060
}
6161

6262
bool
63-
parse_server_encoding(const char *value)
63+
parse_server_encoding(char *value)
6464
{
6565
elog(NOTICE, "SET SERVER_ENCODING is not supported");
6666
return TRUE;

src/include/mb/pg_wchar.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: pg_wchar.h,v 1.13 2000/01/18 05:08:31 ishii Exp $ */
1+
/* $Id: pg_wchar.h,v 1.14 2000/04/20 22:40:18 tgl Exp $ */
22

33
#ifndef PG_WCHAR_H
44
#define PG_WCHAR_H
@@ -112,10 +112,10 @@ extern int pg_mbcliplen(const unsigned char *, int, int);
112112
extern pg_encoding_conv_tbl *pg_get_encent_by_encoding(int);
113113
extern bool show_client_encoding(void);
114114
extern bool reset_client_encoding(void);
115-
extern bool parse_client_encoding(const char *);
115+
extern bool parse_client_encoding(char *);
116116
extern bool show_server_encoding(void);
117117
extern bool reset_server_encoding(void);
118-
extern bool parse_server_encoding(const char *);
118+
extern bool parse_server_encoding(char *);
119119
extern int pg_set_client_encoding(int);
120120
extern int pg_get_client_encoding(void);
121121
extern unsigned char *pg_client_to_server(unsigned char *, int);

0 commit comments

Comments
 (0)