projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ede37cf
)
Clean up compiler warnings.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 23:24:24 +0000
(23:24 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 23:24:24 +0000
(23:24 +0000)
src/backend/commands/dbcommands.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/dbcommands.c
b/src/backend/commands/dbcommands.c
index 7e77ad873c6dcfb62271df172cf41830430dd0cd..3d2277ae07cbeb7ae28872d6ddfba539057413de 100644
(file)
--- a/
src/backend/commands/dbcommands.c
+++ b/
src/backend/commands/dbcommands.c
@@
-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;
+ c
onst c
har * 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
{