aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
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/include/postgres.h
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/include/postgres.h')
-rw-r--r--src/include/postgres.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 5e2aad688a7..e089db510f6 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $Id: postgres.h,v 1.36 2000/01/26 05:57:46 momjian Exp $
+ * $Id: postgres.h,v 1.37 2000/03/17 02:36:34 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -97,7 +97,7 @@ struct varlena
#define VARSIZE(PTR) (((struct varlena *)(PTR))->vl_len)
#define VARDATA(PTR) (((struct varlena *)(PTR))->vl_dat)
-#define VARHDRSZ sizeof(int32)
+#define VARHDRSZ ((int32) sizeof(int32))
typedef struct varlena bytea;
typedef struct varlena text;