mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Fix a bunch of 'old-style parameter declaration' warnings induced by
writing 'foo()' rather than 'foo(void)'.
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
backend_pid()
|
backend_pid(void)
|
||||||
{
|
{
|
||||||
return getpid();
|
return getpid();
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Revisions by Christopher B. Browne, Liberty RMS
|
* Revisions by Christopher B. Browne, Liberty RMS
|
||||||
* Win32 Service code added by Dave Page
|
* Win32 Service code added by Dave Page
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.22 2004/10/16 21:50:02 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.23 2004/10/25 02:14:59 tgl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
@ -192,7 +192,7 @@ log_entry(const char *logentry, int level)
|
|||||||
*/
|
*/
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
static void
|
static void
|
||||||
daemonize()
|
daemonize(void)
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
@ -552,7 +552,7 @@ print_table_info(tbl_info * tbl)
|
|||||||
|
|
||||||
/* init_db_list() creates the db_list and initalizes template1 */
|
/* init_db_list() creates the db_list and initalizes template1 */
|
||||||
static Dllist *
|
static Dllist *
|
||||||
init_db_list()
|
init_db_list(void)
|
||||||
{
|
{
|
||||||
Dllist *db_list = DLNewList();
|
Dllist *db_list = DLNewList();
|
||||||
db_info *dbs = NULL;
|
db_info *dbs = NULL;
|
||||||
@ -975,7 +975,7 @@ send_query(const char *query, db_info * dbi)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
free_cmd_args()
|
free_cmd_args(void)
|
||||||
{
|
{
|
||||||
if (args != NULL)
|
if (args != NULL)
|
||||||
{
|
{
|
||||||
@ -1109,7 +1109,7 @@ get_cmd_args(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
float f = 0;
|
float f = 0;
|
||||||
@ -1151,7 +1151,7 @@ usage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_cmd_args()
|
print_cmd_args(void)
|
||||||
{
|
{
|
||||||
sprintf(logbuffer, "Printing command_args");
|
sprintf(logbuffer, "Printing command_args");
|
||||||
log_entry(logbuffer, LVL_INFO);
|
log_entry(logbuffer, LVL_INFO);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* -------------------------------------------------------------------------
|
/* -------------------------------------------------------------------------
|
||||||
* pg_dumplo
|
* pg_dumplo
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_dumplo/main.c,v 1.19 2003/11/29 19:51:35 pgsql Exp $
|
* $PostgreSQL: pgsql/contrib/pg_dumplo/main.c,v 1.20 2004/10/25 02:15:00 tgl Exp $
|
||||||
*
|
*
|
||||||
* Karel Zak 1999-2000
|
* Karel Zak 1999-2000
|
||||||
* -------------------------------------------------------------------------
|
* -------------------------------------------------------------------------
|
||||||
@ -264,7 +264,7 @@ parse_lolist(LODumpMaster * pgLO)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
printf("\npg_dumplo %s - PostgreSQL large objects dump\n", PG_VERSION);
|
printf("\npg_dumplo %s - PostgreSQL large objects dump\n", PG_VERSION);
|
||||||
puts("pg_dumplo [option]\n\n"
|
puts("pg_dumplo [option]\n\n"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.33 2004/09/14 03:39:23 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.34 2004/10/25 02:15:01 tgl Exp $
|
||||||
*
|
*
|
||||||
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
|
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
|
||||||
* written by Tatsuo Ishii
|
* written by Tatsuo Ishii
|
||||||
@ -107,7 +107,7 @@ typedef struct
|
|||||||
} CState;
|
} CState;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: pgbench [-h hostname][-p port][-c nclients][-t ntransactions][-s scaling_factor][-n][-C][-v][-S][-N][-l][-U login][-P password][-d][dbname]\n");
|
fprintf(stderr, "usage: pgbench [-h hostname][-p port][-c nclients][-t ntransactions][-s scaling_factor][-n][-C][-v][-S][-N][-l][-U login][-P password][-d][dbname]\n");
|
||||||
fprintf(stderr, "(initialize mode): pgbench -i [-h hostname][-p port][-s scaling_factor][-U login][-P password][-d][dbname]\n");
|
fprintf(stderr, "(initialize mode): pgbench -i [-h hostname][-p port][-s scaling_factor][-U login][-P password][-d][dbname]\n");
|
||||||
@ -122,7 +122,7 @@ getrand(int min, int max)
|
|||||||
|
|
||||||
/* set up a connection to the backend */
|
/* set up a connection to the backend */
|
||||||
static PGconn *
|
static PGconn *
|
||||||
doConnect()
|
doConnect(void)
|
||||||
{
|
{
|
||||||
PGconn *con;
|
PGconn *con;
|
||||||
PGresult *res;
|
PGresult *res;
|
||||||
|
@ -216,7 +216,7 @@ ascii_to_bin(char ch)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
des_init()
|
des_init(void)
|
||||||
{
|
{
|
||||||
int i,
|
int i,
|
||||||
j,
|
j,
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/internal.c,v 1.13 2004/05/07 00:24:57 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/internal.c,v 1.14 2004/10/25 02:15:02 tgl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -493,25 +493,25 @@ bf_load(int mode)
|
|||||||
/* ciphers */
|
/* ciphers */
|
||||||
|
|
||||||
static PX_Cipher *
|
static PX_Cipher *
|
||||||
rj_128_ecb()
|
rj_128_ecb(void)
|
||||||
{
|
{
|
||||||
return rj_load(MODE_ECB);
|
return rj_load(MODE_ECB);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PX_Cipher *
|
static PX_Cipher *
|
||||||
rj_128_cbc()
|
rj_128_cbc(void)
|
||||||
{
|
{
|
||||||
return rj_load(MODE_CBC);
|
return rj_load(MODE_CBC);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PX_Cipher *
|
static PX_Cipher *
|
||||||
bf_ecb_load()
|
bf_ecb_load(void)
|
||||||
{
|
{
|
||||||
return bf_load(MODE_ECB);
|
return bf_load(MODE_ECB);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PX_Cipher *
|
static PX_Cipher *
|
||||||
bf_cbc_load()
|
bf_cbc_load(void)
|
||||||
{
|
{
|
||||||
return bf_load(MODE_CBC);
|
return bf_load(MODE_CBC);
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#ifdef DICT_BODY
|
#ifdef DICT_BODY
|
||||||
#include <ctype.h> /* tolower */
|
#include <ctype.h> /* tolower */
|
||||||
|
|
||||||
static void * setup_english_stemmer();
|
static void * setup_english_stemmer(void);
|
||||||
|
|
||||||
static const char * english_stem(void * z, const char * q, int i0, int i1);
|
static const char * english_stem(void * z, const char * q, int i0, int i1);
|
||||||
|
|
||||||
@ -1233,11 +1233,13 @@ find_english_stopword( unsigned char *buf, int len ) {
|
|||||||
#undef ISFINISH
|
#undef ISFINISH
|
||||||
|
|
||||||
static int
|
static int
|
||||||
is_stopengword(void* obj,char* word,int len) {
|
is_stopengword(void* obj,char* word,int len)
|
||||||
|
{
|
||||||
return ( len == find_english_stopword((unsigned char*)word, len) ) ? 1 : 0;
|
return ( len == find_english_stopword((unsigned char*)word, len) ) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void * setup_english_stemmer()
|
static void *
|
||||||
|
setup_english_stemmer(void)
|
||||||
{
|
{
|
||||||
struct english_stemmer * z = (struct english_stemmer *) malloc(sizeof(struct english_stemmer));
|
struct english_stemmer * z = (struct english_stemmer *) malloc(sizeof(struct english_stemmer));
|
||||||
z->p = 0; z->p_size = 0;
|
z->p = 0; z->p_size = 0;
|
||||||
@ -1245,7 +1247,8 @@ static void * setup_english_stemmer()
|
|||||||
return (void *) z;
|
return (void *) z;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void closedown_english_stemmer(void * z_)
|
static void
|
||||||
|
closedown_english_stemmer(void * z_)
|
||||||
{
|
{
|
||||||
struct english_stemmer * z = (struct english_stemmer *) z_;
|
struct english_stemmer * z = (struct english_stemmer *) z_;
|
||||||
free_pool(z->irregulars);
|
free_pool(z->irregulars);
|
||||||
@ -1254,7 +1257,8 @@ static void closedown_english_stemmer(void * z_)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char*
|
static char*
|
||||||
engstemming(void* obj, char *word, int *len) {
|
engstemming(void* obj, char *word, int *len)
|
||||||
|
{
|
||||||
struct english_stemmer * z = (struct english_stemmer *) obj;
|
struct english_stemmer * z = (struct english_stemmer *) obj;
|
||||||
const char* stemmed_word;
|
const char* stemmed_word;
|
||||||
char *result = word;
|
char *result = word;
|
||||||
|
Reference in New Issue
Block a user