mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Clean up compiler warnings.
This commit is contained in:
parent
3908473c80
commit
26adbc7b48
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user