postgres/src/bin/pg_version/pg_version.c
Marc G. Fournier a05ed5bc11 Fixes:
In postgres95/src/backend/nodes/readfuncs, lines 1188 and 1189,
local_node->relname is taken to point to a NameType, while its
defined as a pointer to char. Both the casting to Name and the
call of namestrcpy should, IMHO, be changed appropriately (first
patch).

As far as I could see from the Linux signal header file,
a signal handler is declared as

        typedef void (*__sighandler_t)(int);

Few changes to postgres95/src/backend/storage/lmgr/proc.c seem
appropriate to comply with this.

Finally, postgres95/src/bin/pg_version/pg_version.c defines
a function GetDataHome (by default, returning an integer)
and returns NULL in the function, which isn't an integer...

Submitted by:  ernst.molitor@uni-bonn.de
1996-07-31 02:19:23 +00:00

36 lines
662 B
C

/*-------------------------------------------------------------------------
*
* pg_version.c--
*
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/pg_version.c,v 1.2 1996/07/31 02:19:23 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
int Noversion = 0;
char *DataDir = (char *) NULL;
int
main(int argc, char **argv)
{
if (argc < 2) {
fprintf(stderr, "pg_version: missing argument\n");
exit(1);
}
SetPgVersion(argv[1]);
exit(0);
}
elog() {}
GetDataHome()
{
return(0);
}