diff options
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 8cb9a889ada..e0f1bd75332 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -10,7 +10,7 @@ * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.42 2000/05/27 04:13:05 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.43 2000/06/17 00:10:09 petere Exp $ * *------------------------------------------------------------------------- */ @@ -119,7 +119,7 @@ static void pg_krb4_init() { char *realm; - static init_done = 0; + static int init_done = 0; if (init_done) return; @@ -129,7 +129,7 @@ pg_krb4_init() * If the user set PGREALM, then we use a ticket file with a special * name: <usual-ticket-file-name>@<PGREALM-value> */ - if (realm = getenv("PGREALM")) + if ((realm = getenv("PGREALM"))) { char tktbuf[MAXPGPATH]; @@ -184,7 +184,7 @@ pg_krb4_authname(char *PQerrormsg) * (canonicalized to omit all domain suffixes). */ static int -pg_krb4_sendauth(const char *PQerrormsg, int sock, +pg_krb4_sendauth(char *PQerrormsg, int sock, struct sockaddr_in * laddr, struct sockaddr_in * raddr, const char *hostname) @@ -213,7 +213,7 @@ pg_krb4_sendauth(const char *PQerrormsg, int sock, (u_long) 0, (MSG_DAT *) NULL, (CREDENTIALS *) NULL, - (Key_schedule *) NULL, + NULL, laddr, raddr, PG_KRB4_VERSION); |