]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Clean up compiler warnings.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 23:24:24 +0000 (23:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 23:24:24 +0000 (23:24 +0000)
src/backend/commands/dbcommands.c

index 0360b5f7bd12a198d9726fc83018ad34a2d42b3c..e2821d6237e4881958c9ad7059c02190efa2d372 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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 *
 resolve_alt_dbpath(const char * dbpath, Oid dboid)
 {
-       char * prefix;
+       const char * prefix;
        char * ret;
        size_t len;
 
@@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
 
        if (strchr(dbpath, '/'))
        {
-#ifdef ALLOW_ABSOLUTE_DBPATHS
-               prefix = dbpath;
-#else
+#ifndef ALLOW_ABSOLUTE_DBPATHS
                elog(ERROR, "Absolute paths are not allowed as database locations");
 #endif
+               prefix = dbpath;
        }
        else
        {