mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Change form() to varargform() to prevent portability problems.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.78 1999/06/16 11:01:17 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.79 1999/06/19 04:54:11 momjian Exp $
|
||||
*
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
@@ -372,7 +372,7 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
|
||||
HeapScanDesc pg_am_scan;
|
||||
HeapTuple pg_am_tuple;
|
||||
ScanKeyData key;
|
||||
Form_pg_am form;
|
||||
Form_pg_am aform;
|
||||
|
||||
/* ----------------
|
||||
* form a scan key for the pg_am relation
|
||||
@@ -406,13 +406,13 @@ AccessMethodObjectIdGetForm(Oid accessMethodObjectId)
|
||||
* if found am tuple, then copy the form and return the copy
|
||||
* ----------------
|
||||
*/
|
||||
form = (Form_pg_am) palloc(sizeof *form);
|
||||
memcpy(form, GETSTRUCT(pg_am_tuple), sizeof *form);
|
||||
aform = (Form_pg_am) palloc(sizeof *aform);
|
||||
memcpy(aform, GETSTRUCT(pg_am_tuple), sizeof *aform);
|
||||
|
||||
heap_endscan(pg_am_scan);
|
||||
heap_close(pg_am_desc);
|
||||
|
||||
return form;
|
||||
return aform;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user