Commit 60ed8bbe authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Fix up warning and error messages to use single-quotes aroun strings.

parent 4fe24467
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.22 1998/09/01 04:33:15 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.23 1998/10/05 02:48:49 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -236,12 +236,12 @@ SetDatabaseName(char *name) ...@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
#ifndef MULTIBYTE #ifndef MULTIBYTE
/* even if MULTIBYTE is not enabled, this function is neccesary /* even if MULTIBYTE is not enabled, this function is neccesary
* since pg_proc.h does have. * since pg_proc.h has an entry for it.
*/ */
const char * const char *
getdatabaseencoding() getdatabaseencoding()
{ {
elog(ERROR, "you need to enable MB to use this function"); elog(ERROR, "MultiByte strings (MB) must be enabled to use this function");
return (""); return ("");
} }
...@@ -421,13 +421,13 @@ SetPgUserName() ...@@ -421,13 +421,13 @@ SetPgUserName()
{ {
/* use the (possibly) authenticated name that's provided */ /* use the (possibly) authenticated name that's provided */
if (!(p = getenv("PG_USER"))) if (!(p = getenv("PG_USER")))
elog(FATAL, "SetPgUserName: PG_USER environment variable unset"); elog(FATAL, "SetPgUserName: PG_USER environment variable is unset");
} }
else else
{ {
/* setuid() has not yet been done, see above comment */ /* setuid() has not yet been done, see above comment */
if (!(pw = getpwuid(geteuid()))) if (!(pw = getpwuid(geteuid())))
elog(FATAL, "SetPgUserName: no entry in passwd file"); elog(FATAL, "SetPgUserName: no entry in host passwd file");
p = pw->pw_name; p = pw->pw_name;
} }
if (UserName) if (UserName)
...@@ -473,7 +473,7 @@ SetUserId() ...@@ -473,7 +473,7 @@ SetUserId()
PointerGetDatum(userName), PointerGetDatum(userName),
0, 0, 0); 0, 0, 0);
if (!HeapTupleIsValid(userTup)) if (!HeapTupleIsValid(userTup))
elog(FATAL, "SetUserId: user \"%s\" is not in \"%s\"", elog(FATAL, "SetUserId: user '%s' is not in '%s'",
userName, userName,
ShadowRelationName); ShadowRelationName);
UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid; UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment