Skip to content

Commit 26adbc7

Browse files
committed
Clean up compiler warnings.
1 parent 3908473 commit 26adbc7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/commands/dbcommands.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.64 2000/11/08 16:59:49 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.65 2000/11/08 23:24:24 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -387,7 +387,7 @@ get_user_info(Oid use_sysid, bool *use_super, bool *use_createdb)
387387
static char *
388388
resolve_alt_dbpath(const char * dbpath, Oid dboid)
389389
{
390-
char * prefix;
390+
const char * prefix;
391391
char * ret;
392392
size_t len;
393393

@@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
396396

397397
if (strchr(dbpath, '/'))
398398
{
399-
#ifdef ALLOW_ABSOLUTE_DBPATHS
400-
prefix = dbpath;
401-
#else
399+
#ifndef ALLOW_ABSOLUTE_DBPATHS
402400
elog(ERROR, "Absolute paths are not allowed as database locations");
403401
#endif
402+
prefix = dbpath;
404403
}
405404
else
406405
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy