mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
All external function definitions now have prototypes that are checked.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.16 1996/11/10 01:46:14 bryanh Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.17 1996/11/10 03:06:36 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
@@ -55,7 +56,7 @@ static void freePGconn(PGconn *conn);
|
||||
static void closePGconn(PGconn *conn);
|
||||
static int conninfo_parse(const char *conninfo, char *errorMessage);
|
||||
static char *conninfo_getval(char *keyword);
|
||||
static void conninfo_free();
|
||||
static void conninfo_free(void);
|
||||
|
||||
#define NOTIFYLIST_INITIAL_SIZE 10
|
||||
#define NOTIFYLIST_GROWBY 10
|
||||
@@ -236,7 +237,7 @@ PQconnectdb(const char *conninfo)
|
||||
* ----------------
|
||||
*/
|
||||
PQconninfoOption*
|
||||
PQconndefaults()
|
||||
PQconndefaults(void)
|
||||
{
|
||||
char errorMessage[ERROR_MSG_LENGTH];
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq-fe.h,v 1.10 1996/11/09 10:39:54 scrappy Exp $
|
||||
* $Id: libpq-fe.h,v 1.11 1996/11/10 03:06:38 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -170,7 +170,7 @@ typedef struct _PQconninfoOption PQconninfoOption;
|
||||
/* === in fe-connect.c === */
|
||||
/* make a new client connection to the backend */
|
||||
extern PGconn* PQconnectdb(const char* conninfo);
|
||||
extern PQconninfoOption *PQconndefaults();
|
||||
extern PQconninfoOption *PQconndefaults(void);
|
||||
extern PGconn* PQsetdb(const char* pghost, const char* pgport, const char* pgoptions,
|
||||
const char* pgtty, const char* dbName);
|
||||
/* close the current connection and free the PGconn data structure */
|
||||
|
||||
Reference in New Issue
Block a user