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

Commit72c7bad

Browse files
committed
Fix some warnings (probably actual bugs) generated by new GSSAPI code
when built on a 64-bit machine. Per buildfarm results extracted by Stefan.
1 parentbc8d164 commit72c7bad

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎src/backend/libpq/auth.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.152 2007/07/1214:43:20 mha Exp $
11+
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.153 2007/07/1220:36:11 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -436,7 +436,7 @@ pg_GSS_recvauth(Port *port)
436436
gbuf.value=buf.data;
437437

438438
elog(DEBUG4,"Processing received GSS token of length %u",
439-
gbuf.length);
439+
(unsignedint)gbuf.length);
440440

441441
maj_stat=gss_accept_sec_context(
442442
&min_stat,
@@ -454,18 +454,18 @@ pg_GSS_recvauth(Port *port)
454454
/* gbuf no longer used */
455455
pfree(buf.data);
456456

457-
elog(DEBUG5,"gss_accept_sec_context major: %i, "
458-
"minor: %i, outlen: %u, outflags: %x",
459-
maj_stat,min_stat,
460-
port->gss->outbuf.length,gflags);
457+
elog(DEBUG5,"gss_accept_sec_context major: %d, "
458+
"minor: %d, outlen: %u, outflags: %x",
459+
maj_stat,min_stat,
460+
(unsignedint)port->gss->outbuf.length,gflags);
461461

462462
if (port->gss->outbuf.length!=0)
463463
{
464464
/*
465465
* Negotiation generated data to be sent to the client.
466466
*/
467467
elog(DEBUG4,"sending GSS response token of length %u",
468-
port->gss->outbuf.length);
468+
(unsignedint)port->gss->outbuf.length);
469469

470470
sendAuthRequest(port,AUTH_REQ_GSS_CONT);
471471
}
@@ -788,7 +788,7 @@ sendAuthRequest(Port *port, AuthRequest areq)
788788
OM_uint32lmin_s;
789789

790790
elog(DEBUG4,"sending GSS token of length %u",
791-
port->gss->outbuf.length);
791+
(unsignedint)port->gss->outbuf.length);
792792

793793
pq_sendbytes(&buf,port->gss->outbuf.value,port->gss->outbuf.length);
794794
gss_release_buffer(&lmin_s,&port->gss->outbuf);
@@ -1022,13 +1022,13 @@ CheckLDAPAuth(Port *port)
10221022

10231023
/* ldap, including port number */
10241024
r=sscanf(port->auth_arg,
1025-
"ldap://%127[^:]:%i/%127[^;];%127[^;];%127s",
1025+
"ldap://%127[^:]:%d/%127[^;];%127[^;];%127s",
10261026
server,&ldapport,basedn,prefix,suffix);
10271027
if (r<3)
10281028
{
10291029
/* ldaps, including port number */
10301030
r=sscanf(port->auth_arg,
1031-
"ldaps://%127[^:]:%i/%127[^;];%127[^;];%127s",
1031+
"ldaps://%127[^:]:%d/%127[^;];%127[^;];%127s",
10321032
server,&ldapport,basedn,prefix,suffix);
10331033
if (r >=3)
10341034
ssl= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp