Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e196d7

Browse files
committed
Clean up for warning:
fe-auth.c:573: warning: passing argument 1 of 'free' discards qualifiers from pointer target typepg_krb5_authname used to return a (const char *) to memory allocated bykrb. Somewhere along the lines this was changed so that a copy wasmade, returned, and freed instead. However the const modifier was neverremoved.
1 parent7234777 commit9e196d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/interfaces/libpq/fe-auth.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.115 2006/06/20 19:56:52 tgl Exp $
13+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.116 2006/07/12 02:31:56 joe Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -188,10 +188,10 @@ pg_krb5_destroy(struct krb5_info *info)
188188

189189

190190
/*
191-
* pg_krb5_authname -- returns apointer to static space containing whatever
192-
*name the userhas authenticated to the system
193-
*/
194-
staticconstchar*
191+
* pg_krb5_authname -- returns acopy of whatever name the user
192+
* has authenticated to the system, or NULL
193+
*/
194+
staticchar*
195195
pg_krb5_authname(char*PQerrormsg)
196196
{
197197
char*tmp_name;
@@ -520,7 +520,7 @@ char *
520520
pg_fe_getauthname(char*PQerrormsg)
521521
{
522522
#ifdefKRB5
523-
constchar*krb5_name=NULL;
523+
char*krb5_name=NULL;
524524
#endif
525525
constchar*name=NULL;
526526
char*authn;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp