diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-08-06 16:16:50 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-08-06 16:16:50 +0000 |
commit | c4e53a14110816d0d495bb7f00cb4e3bdee3f123 (patch) | |
tree | f814bdef83ef6a13b8c4bf62eab7a16e83dd2098 /src/interfaces/libpq/fe-auth.h | |
parent | fd3b829959e1e2288e6fb58063aab498439fcd74 (diff) | |
download | postgresql-c4e53a14110816d0d495bb7f00cb4e3bdee3f123.tar.gz postgresql-c4e53a14110816d0d495bb7f00cb4e3bdee3f123.zip |
Fixes for:
Here are a few minor fixes to Postgres95. Mostly I have added const
to some of the char pointers. There was also a missing header file
and a place where it looks like "==" was used when "=" was meant.
I also changed some variables from Pfin and Pfout tp pfin and pfout
because the latter shadow global variables and that just seems like
an unsafe practice which I like to avoid.
Submitted by: "D'Arcy J.M. Cain" <darcy@druid.druid.com>
Diffstat (limited to 'src/interfaces/libpq/fe-auth.h')
-rw-r--r-- | src/interfaces/libpq/fe-auth.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-auth.h b/src/interfaces/libpq/fe-auth.h index d5b8ecd8f76..fa939ac122f 100644 --- a/src/interfaces/libpq/fe-auth.h +++ b/src/interfaces/libpq/fe-auth.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: fe-auth.h,v 1.1.1.1 1996/07/09 06:22:17 scrappy Exp $ + * $Id: fe-auth.h,v 1.2 1996/08/06 16:16:44 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -28,8 +28,8 @@ #define DEFAULT_CLIENT_AUTHSVC "kerberos" #endif /* KRB4 || KRB5 */ -extern int fe_sendauth(MsgType msgtype, Port *port, char *hostname, char* PQerromsg); -extern void fe_setauthsvc(char *name, char* PQerrormsg); +extern int fe_sendauth(MsgType msgtype, Port *port, const char *hostname, const char* PQerromsg); +extern void fe_setauthsvc(const char *name, char* PQerrormsg); #define PG_KRB4_VERSION "PGVER4.1" /* at most KRB_SENDAUTH_VLEN chars */ #define PG_KRB5_VERSION "PGVER5.1" |