aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/portal.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-03-17 02:36:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-03-17 02:36:41 +0000
commit341b328b180e65d1fa5c8f2235cf101c8a12824f (patch)
tree88d54198ffa15aea581251471f8c062ae9e3142e /src/backend/libpq/portal.c
parentbc1f117094fbe2921f37923d8f7528284cb26dfc (diff)
downloadpostgresql-341b328b180e65d1fa5c8f2235cf101c8a12824f.tar.gz
postgresql-341b328b180e65d1fa5c8f2235cf101c8a12824f.zip
Fix a bunch of minor portability problems and maybe-bugs revealed by
running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful...
Diffstat (limited to 'src/backend/libpq/portal.c')
-rw-r--r--src/backend/libpq/portal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/portal.c b/src/backend/libpq/portal.c
index 1d7077b7254..4c97dd1cf11 100644
--- a/src/backend/libpq/portal.c
+++ b/src/backend/libpq/portal.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: portal.c,v 1.29 2000/01/26 05:56:29 momjian Exp $
+ * $Id: portal.c,v 1.30 2000/03/17 02:36:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -106,7 +106,7 @@ PQnportals(int rule_p)
int i,
n = 0;
- for (i = 0; i < portals_array_size; ++i)
+ for (i = 0; i < (int) portals_array_size; ++i)
{
if (portals[i] && portals[i]->portal)
{
@@ -138,7 +138,7 @@ PQpnames(char **pnames, int rule_p)
if (!valid_pointer("PQpnames: invalid name buffer", pnames))
return;
- for (i = 0; i < portals_array_size; ++i)
+ for (i = 0; i < (int) portals_array_size; ++i)
{
if (portals[i] && portals[i]->portal)
{