Clean up compiler warnings.

This commit is contained in:
Tom Lane 2000-11-08 23:24:24 +00:00
parent 3908473c80
commit 26adbc7b48
1 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.64 2000/11/08 16:59:49 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.65 2000/11/08 23:24:24 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -387,7 +387,7 @@ get_user_info(Oid use_sysid, bool *use_super, bool *use_createdb)
static char * static char *
resolve_alt_dbpath(const char * dbpath, Oid dboid) resolve_alt_dbpath(const char * dbpath, Oid dboid)
{ {
char * prefix; const char * prefix;
char * ret; char * ret;
size_t len; size_t len;
@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
if (strchr(dbpath, '/')) if (strchr(dbpath, '/'))
{ {
#ifdef ALLOW_ABSOLUTE_DBPATHS #ifndef ALLOW_ABSOLUTE_DBPATHS
prefix = dbpath;
#else
elog(ERROR, "Absolute paths are not allowed as database locations"); elog(ERROR, "Absolute paths are not allowed as database locations");
#endif #endif
prefix = dbpath;
} }
else else
{ {