diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
commit | edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 (patch) | |
tree | 4f1fe8679d97cb881fe3bcd6a46cf63a50cef1e8 /src/interfaces/libpq/fe-auth.c | |
parent | 4b851b1cfc629a9d3802aa5c22572593663f5fe0 (diff) | |
download | postgresql-edb58721b8f7fd76b5dfa3bf83c683f2e266abd3.tar.gz postgresql-edb58721b8f7fd76b5dfa3bf83c683f2e266abd3.zip |
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 66c2acf9ecc..d058ec8ab78 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.7 1997/03/12 21:23:02 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.8 1997/08/12 20:16:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -273,10 +273,10 @@ krb5_ccache pg_krb5_init(void) "pg_krb5_init: krb5_cc_default_name failed\n"); return((krb5_ccache) NULL); } - (void) strcpy(tktbuf, defname); + strcpy(tktbuf, defname); if (realm = getenv("PGREALM")) { - (void) strcat(tktbuf, "@"); - (void) strcat(tktbuf, realm); + strcat(tktbuf, "@"); + strcat(tktbuf, realm); } if (code = krb5_cc_resolve(tktbuf, &ccache)) { @@ -374,19 +374,19 @@ pg_krb5_sendauth(const char* PQerrormsg,int sock, /* * set up server -- canonicalize as described above */ - (void) strcpy(servbuf, PG_KRB_SRVNAM); + strcpy(servbuf, PG_KRB_SRVNAM); *(hostp = servbuf + (sizeof(PG_KRB_SRVNAM) - 1)) = '/'; if (hostname || *hostname) { - (void) strncpy(++hostp, hostname, MAXHOSTNAMELEN); + strncpy(++hostp, hostname, MAXHOSTNAMELEN); } else { if (gethostname(++hostp, MAXHOSTNAMELEN) < 0) - (void) strcpy(hostp, "localhost"); + strcpy(hostp, "localhost"); } if (hostp = strchr(hostp, '.')) *hostp = '\0'; if (realm = getenv("PGREALM")) { - (void) strcat(servbuf, "@"); - (void) strcat(servbuf, realm); + strcat(servbuf, "@"); + strcat(servbuf, realm); } if (code = krb5_parse_name(servbuf, &server)) { (void) sprintf(PQerrormsg, @@ -565,7 +565,7 @@ fe_getauthname(char* PQerrormsg) } if(name && (authn = (char *) malloc(strlen(name) + 1))) - (void) strcpy(authn, name); + strcpy(authn, name); return(authn); } |