From f36b2560a4d8dbeb5e0383ca44f8c85adb593a4f Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 23 Oct 1996 07:42:13 +0000 Subject: Major code cleanups from D'arcy (-Wall -Werror) --- src/backend/bootstrap/bootstrap.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index d6479be378..f636209f8e 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -7,10 +7,15 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.8 1996/10/21 08:31:23 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.9 1996/10/23 07:39:42 scrappy Exp $ * *------------------------------------------------------------------------- */ +#include +#include +#include +#include + #define BOOTSTRAP_INCLUDE /* mask out stuff in tcop/tcopprot.h */ #include "postgres.h" @@ -28,7 +33,6 @@ #include "access/strat.h" #include "utils/rel.h" -#include #include "storage/block.h" #include "storage/off.h" #include "storage/itemptr.h" @@ -45,10 +49,6 @@ #include "nodes/memnodes.h" -#include -#include -#include - #include "miscadmin.h" #include "catalog/pg_type.h" @@ -101,6 +101,8 @@ #define ALLOC(t, c) (t *)calloc((unsigned)(c), sizeof(t)) #define FIRST_TYPE_OID 16 /* OID of the first type */ + extern int Int_yyparse (void); + /* ---------------- * global variables * ---------------- @@ -235,7 +237,8 @@ typedef void (*sig_func)(); * error handling / abort routines * ---------------- */ -void err_out() +void +err_out(void) { Warnings++; cleanup(); @@ -245,7 +248,7 @@ void err_out() usage help for the bootstrap backen */ static void -usage() +usage(void) { fprintf(stderr,"Usage: postgres -boot [-d] [-C] [-F] [-O] [-Q] "); fprintf(stderr,"[-P portno] [dbName]\n"); -- cgit v1.2.1