aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/test_thread.pgc
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-06-30 07:08:59 +0000
committerNeil Conway <neilc@samurai.com>2005-06-30 07:08:59 +0000
commit4802bb57a6d5331f32bc14bb196e397021fece1c (patch)
tree766ef5218fac60e4aa75adad390809950d441af8 /src/interfaces/ecpg/test/test_thread.pgc
parent175c25a40472d06656fbddc46f0e8a1e0b0cb867 (diff)
downloadpostgresql-4802bb57a6d5331f32bc14bb196e397021fece1c.tar.gz
postgresql-4802bb57a6d5331f32bc14bb196e397021fece1c.zip
Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,
remove old-style function declarations, and mark a function "static". There are some remaining warnings, but this fixes most of them, anyway.
Diffstat (limited to 'src/interfaces/ecpg/test/test_thread.pgc')
-rw-r--r--src/interfaces/ecpg/test/test_thread.pgc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/test_thread.pgc b/src/interfaces/ecpg/test/test_thread.pgc
index 46a371a6f89..bf977cc9374 100644
--- a/src/interfaces/ecpg/test/test_thread.pgc
+++ b/src/interfaces/ecpg/test/test_thread.pgc
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
}
for( n = 0; n < nthreads; n++ )
{
- pthread_create(&threads[n], NULL, test_thread, (void *)n + 1);
+ pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1));
}
/* wait for thread completion */