mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
This patch makes some cleanups to contrib/ to silence some sparse
warnings: - remove pointless "extern" keyword from some function definitions in contrib/tsearch2 - use "NULL" not "0" as NULL pointer in contrib/tsearch, contrib/tsearch2, contrib/pgbench, and contrib/vacuumlo
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
#include "header.h"
|
||||
|
||||
extern struct SN_env *
|
||||
struct SN_env *
|
||||
SN_create_env(int S_size, int I_size, int B_size)
|
||||
{
|
||||
struct SN_env *z = (struct SN_env *) calloc(1, sizeof(struct SN_env));
|
||||
@ -59,7 +59,7 @@ SN_create_env(int S_size, int I_size, int B_size)
|
||||
return z;
|
||||
}
|
||||
|
||||
extern void
|
||||
void
|
||||
SN_close_env(struct SN_env * z)
|
||||
{
|
||||
if (z->S && z->S_size)
|
||||
@ -81,7 +81,7 @@ SN_close_env(struct SN_env * z)
|
||||
free(z);
|
||||
}
|
||||
|
||||
extern void
|
||||
void
|
||||
SN_set_current(struct SN_env * z, int size, const symbol * s)
|
||||
{
|
||||
replace_s(z, 0, z->l, size, s);
|
||||
|
Reference in New Issue
Block a user