*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_pool.c,v 1.6 1998/03/30 16:46:35 momjian Exp $
+ * $Id: geqo_pool.c,v 1.7 1998/04/06 02:38:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/geqo_recombination.h"
-static int compare(void *arg1, void *arg2);
+static int compare(const void *arg1, const void *arg2);
/*
* alloc-pool--
* don't change them!
*/
static int
-compare(void *arg1, void *arg2)
+compare(const void *arg1, const void *arg2)
{
Chromosome chromo1 = *(Chromosome *) arg1;
Chromosome chromo2 = *(Chromosome *) arg2;
#ifdef MB
p->next = wcp;
#else
- p->next = pattern; /* convenience; we do not modify it */
+ p->next = (pg_wchar *)pattern; /* convenience; we do not modify it */
#endif
p->end = p->next + len;
p->error = 0;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.15 1998/03/30 16:47:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.16 1998/04/06 02:38:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
};
static int
-itemidcompare(void *itemidp1, void *itemidp2)
+itemidcompare(const void *itemidp1, const void *itemidp2)
{
if (((struct itemIdSortData *) itemidp1)->itemiddata.lp_off ==
((struct itemIdSortData *) itemidp2)->itemiddata.lp_off)
/* after the options there must not be anything but filenames */
for (fnr = optind; fnr < argc; fnr++)
{
- char *output_filename, *ptr2ext;
+ char *ptr2ext;
input_filename = mm_alloc(strlen(argv[fnr]) + 5);
if (out_option == 0)/* calculate the output name */
{
- output_filename = strdup(input_filename);
+ char *output_filename = strdup(input_filename);
ptr2ext = strrchr(output_filename, '.');
/* make extension = .c */
free(input_filename);
continue;
}
+ free(output_filename);
}
yyin = fopen(input_filename, "r");
if (out_option == 0)
fclose(yyout);
}
-
- free(output_filename);
free(input_filename);
}
}