diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-17 12:39:20 -0400 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-05 14:52:55 -0400 |
| commit | 17273d059cd3a5cba818505b0d47a444c36a3513 (patch) | |
| tree | 812c47b95d279e50e5d797852edd6664f217a0c8 /src/interfaces/ecpg/test/thread/thread.pgc | |
| parent | ba26f5cf768a31e0cbdf5eb8675ee187ad35fd0b (diff) | |
| download | postgresql-17273d059cd3a5cba818505b0d47a444c36a3513.tar.gz | |
Remove unnecessary parentheses in return statements
The parenthesized style has only been used in a few modules. Change
that to use the style that is predominant across the whole tree.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
Diffstat (limited to 'src/interfaces/ecpg/test/thread/thread.pgc')
| -rw-r--r-- | src/interfaces/ecpg/test/thread/thread.pgc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/test/thread/thread.pgc b/src/interfaces/ecpg/test/thread/thread.pgc index c5fbe928d9..ae6b229962 100644 --- a/src/interfaces/ecpg/test/thread/thread.pgc +++ b/src/interfaces/ecpg/test/thread/thread.pgc @@ -60,7 +60,7 @@ int main() if( threads == NULL ) { fprintf(stderr, "Cannot alloc memory\n"); - return( 1 ); + return 1; } for( n = 0; n < nthreads; n++ ) { @@ -92,7 +92,7 @@ int main() else printf("ERROR: Failure - expecting %d rows, got %d.\n", nthreads * iterations, l_rows); - return( 0 ); + return 0; } void *test_thread(void *arg) @@ -121,7 +121,7 @@ void *test_thread(void *arg) if( sqlca.sqlcode != 0 ) { printf("%s: ERROR: cannot connect to database!\n", l_connection); - return( NULL ); + return NULL; } EXEC SQL AT :l_connection BEGIN; @@ -136,6 +136,6 @@ void *test_thread(void *arg) /* all done */ EXEC SQL AT :l_connection COMMIT; EXEC SQL DISCONNECT :l_connection; - return( NULL ); + return NULL; } #endif /* ENABLE_THREAD_SAFETY */ |
