1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Remove un-needed braces around single statements.

This commit is contained in:
Bruce Momjian
1998-06-15 19:30:31 +00:00
parent 27db9ecd0b
commit 6bd323c6b3
224 changed files with 221 additions and 2504 deletions

View File

@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datum.c,v 1.9 1998/01/05 16:39:52 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datum.c,v 1.10 1998/06/15 19:29:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -56,9 +56,7 @@ datumGetSize(Datum value, Oid type, bool byVal, Size len)
if (byVal)
{
if (len <= sizeof(Datum))
{
size = len;
}
else
{
elog(ERROR,
@ -116,9 +114,7 @@ datumCopy(Datum value, Oid type, bool byVal, Size len)
if (byVal)
{
res = value;
}
else
{
if (value == 0)
@ -131,9 +127,7 @@ datumCopy(Datum value, Oid type, bool byVal, Size len)
*/
s = (char *) palloc(realSize);
if (s == NULL)
{
elog(ERROR, "datumCopy: out of memory\n");
}
memmove(s, DatumGetPointer(value), realSize);
res = (Datum) s;
}