1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +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

@@ -68,9 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
void *vp;
if ((vp = dlopen((char *) file, num)) == (void *) NULL)
{
sprintf(error_message, "dlopen (%s) failed", file);
}
return (vp);
#endif
}
@@ -91,9 +89,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
name = buf;
}
if ((vp = dlsym(handle, (char *) name)) == (void *) NULL)
{
sprintf(error_message, "dlsym (%s) failed", name);
}
return (vp);
#endif
}

View File

@@ -36,9 +36,7 @@ pg_dlopen(char *filename)
if (!dl_initialized)
{
if (dld_init(dld_find_executable(pg_pathname)))
{
return NULL;
}
/*
* if there are undefined symbols, we want dl to search from the
@@ -51,9 +49,7 @@ pg_dlopen(char *filename)
* link the file, then check for undefined symbols!
*/
if (dld_link(filename))
{
return NULL;
}
/*
* If undefined symbols: try to link with the C and math libraries!

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.3 1998/02/26 04:34:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.4 1998/06/15 19:28:59 momjian Exp $
*
* NOTES
* all functions are defined here -- it's impossible to trace the
@@ -38,9 +38,7 @@ pg_dlsym(void *handle, char *funcname)
func_ptr f;
if (shl_findsym((shl_t *) & handle, funcname, TYPE_PROCEDURE, &f) == -1)
{
f = (func_ptr) NULL;
}
return (f);
}

View File

@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.7 1998/02/26 04:34:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.8 1998/06/15 19:28:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,9 +44,7 @@ pg_dlopen(char *filename)
if (!dl_initialized)
{
if (dld_init(dld_find_executable(pg_pathname)))
{
return NULL;
}
/*
* if there are undefined symbols, we want dl to search from the
@@ -59,9 +57,7 @@ pg_dlopen(char *filename)
* link the file, then check for undefined symbols!
*/
if (dld_link(filename))
{
return NULL;
}
/*
* If undefined symbols: try to link with the C and math libraries!

View File

@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.1 1998/03/10 05:23:40 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.2 1998/06/15 19:28:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -37,9 +37,7 @@ pg_dlopen(char *filename)
if (!dl_initialized)
{
if (!dl_init(pg_pathname))
{
return NULL;
}
/*
* if there are undefined symbols, we want dl to search from the

View File

@@ -1,4 +1,4 @@
/* $Id: strcasecmp.c,v 1.3 1998/02/11 19:11:10 momjian Exp $ */
/* $Id: strcasecmp.c,v 1.4 1998/06/15 19:28:57 momjian Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
@@ -71,12 +71,8 @@ strcasecmp(char *s1, char *s2)
u1 = (unsigned char) *s1++;
u2 = (unsigned char) *s2++;
if (charmap[u1] != charmap[u2])
{
return charmap[u1] - charmap[u2];
}
if (u1 == '\0')
{
return 0;
}
}
}