1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-27 07:42:10 +03:00

offsetof cleanup.

This commit is contained in:
Bruce Momjian
1998-09-04 18:21:11 +00:00
parent f93281a1a1
commit 4b814b1886
2 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.39 1998/09/04 18:05:39 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.40 1998/09/04 18:21:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -917,7 +917,7 @@ inv_wrold(LargeObjectDesc *obj_desc,
/*
ntup = inv_newtuple(obj_desc, newbuf, newpage, (char *) NULL, tupbytes);
dptr = ((char *) ntup) + ntup->t_hoff -
(sizeof(HeapTupleData) - offsetof(HeapTupleData.t_bits)) +
(sizeof(HeapTupleData) - offsetof(HeapTupleData, t_bits)) +
sizeof(int4)
+ sizeof(fsblock->vl_len);
@@ -998,7 +998,7 @@ inv_newtuple(LargeObjectDesc *obj_desc,
char *attptr;
/* compute tuple size -- no nulls */
hoff = offsetof(HeapTuple->t_bits);
hoff = offsetof(HeapTupleData, t_bits);
/* add in olastbyte, varlena.vl_len, varlena.vl_dat */
tupsize = hoff + (2 * sizeof(int32)) + nwrite;