summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorBruce Momjian1999-02-03 21:18:02 +0000
committerBruce Momjian1999-02-03 21:18:02 +0000
commit9322950aa44ef3647ccdd043cffe92cead171587 (patch)
treeca69b5d9a1278312e21f9e68ce4ac1e236212495 /src/interfaces
parent3982368a4e2ae08659c1bd7536c91ec9c08a6139 (diff)
Cleanup of source files where 'return' or 'var =' is alone on a line.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/type.c3
-rw-r--r--src/interfaces/libpq/fe-print.c8
-rw-r--r--src/interfaces/odbc/setup.c3
3 files changed, 5 insertions, 9 deletions
diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c
index cf68d8d60a..52cc8f8087 100644
--- a/src/interfaces/ecpg/preproc/type.c
+++ b/src/interfaces/ecpg/preproc/type.c
@@ -71,8 +71,7 @@ void
ECPGmake_struct_member(char *name, struct ECPGtype * type, struct ECPGstruct_member ** start)
{
struct ECPGstruct_member *ptr,
- *ne =
- (struct ECPGstruct_member *) mm_alloc(sizeof(struct ECPGstruct_member));
+ *ne = (struct ECPGstruct_member *) mm_alloc(sizeof(struct ECPGstruct_member));
ne->name = strdup(name);
ne->typ = type;
diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c
index a99fc27ba2..7bfd500c6a 100644
--- a/src/interfaces/libpq/fe-print.c
+++ b/src/interfaces/libpq/fe-print.c
@@ -9,7 +9,7 @@
* didn't really belong there.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.16 1999/01/27 01:18:23 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.17 1999/02/03 21:17:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -130,8 +130,7 @@ PQprint(FILE *fout,
for (j = 0; j < nFields; j++)
{
int len;
- char *s =
- (j < numFieldName && po->fieldName[j][0]) ?
+ char *s = (j < numFieldName && po->fieldName[j][0]) ?
po->fieldName[j] : PQfname(res, j);
fieldNames[j] = s;
@@ -175,8 +174,7 @@ PQprint(FILE *fout,
nTups * (nFields + 1) >= screen_size.ws_row) ||
(!po->expanded &&
nTups * (total_line_length / screen_size.ws_col + 1) *
- (1 + (po->standard != 0)) >=
- screen_size.ws_row -
+ (1 + (po->standard != 0)) >= screen_size.ws_row -
(po->header != 0) *
(total_line_length / screen_size.ws_col + 1) * 2
- (po->header != 0) * 2 /* row count and newline */
diff --git a/src/interfaces/odbc/setup.c b/src/interfaces/odbc/setup.c
index 42f538dc7d..dae789003d 100644
--- a/src/interfaces/odbc/setup.c
+++ b/src/interfaces/odbc/setup.c
@@ -113,8 +113,7 @@ LPSETUPDLG lpsetupdlg;
lpsetupdlg->hwndParent = hwnd;
lpsetupdlg->lpszDrvr = lpszDriver;
lpsetupdlg->fNewDSN = (ODBC_ADD_DSN == fRequest);
- lpsetupdlg->fDefault =
- !lstrcmpi(lpsetupdlg->ci.dsn, INI_DSN);
+ lpsetupdlg->fDefault = !lstrcmpi(lpsetupdlg->ci.dsn, INI_DSN);
// Display the appropriate dialog (if parent window handle supplied)
if (hwnd) {