Project

General

Profile

Enhancement #750 » 0005-sanitize-add-missing-void-on-functions-not-expecting.patch

Loïc Gomez, 2022-01-10 19:27

View differences:

src/bip.c
130 130
#define ERRBUFSZ 128
131 131

  
132 132
extern list_t *root_list;
133
extern int yyparse();
133
extern int yyparse(void);
134 134

  
135 135
void conf_die(bip_t *bip, char *fmt, ...)
136 136
{
......
1100 1100
	return 0;
1101 1101
}
1102 1102

  
1103
void check_rlimits()
1103
void check_rlimits(void)
1104 1104
{
1105 1105
	int r, cklim;
1106 1106
	struct rlimit lt;
src/bip_main.c
62 62

  
63 63
void reload_config(int i);
64 64
void bad_quit(int i);
65
void check_rlimits();
65
void check_rlimits(void);
66 66
void rlimit_cpu_reached(int i);
67 67
void rlimit_bigfile_reached(int i);
68 68
void conf_die(bip_t *bip, char *fmt, ...);
......
83 83
	exit(1);
84 84
}
85 85

  
86
static void version()
86
static void version(void)
87 87
{
88 88
	printf(
89 89
"Bip IRC Proxy - " PACKAGE_VERSION "\n"
src/conf.y
24 24

  
25 25
extern int yyerror(char *);
26 26

  
27
int yywrap()
27
int yywrap(void)
28 28
{
29 29
	return 1;
30 30
}
src/irc.c
2752 2752
	free(cli);
2753 2753
}
2754 2754

  
2755
struct link *irc_link_new()
2755
struct link *irc_link_new(void)
2756 2756
{
2757 2757
	struct link *link;
2758 2758
	link = bip_calloc(sizeof(struct link), 1);
src/irc.h
271 271
struct link_client *irc_client_new(void);
272 272
struct link_server *irc_server_new(struct link *link, connection_t *conn);
273 273
void irc_server_free(struct link_server *is);
274
struct client *client_new();
274
struct client *client_new(void);
275 275
void irc_main(bip_t *);
276 276
int ischannel(char p);
277 277
void irc_client_close(struct link_client *);
278 278
void irc_client_free(struct link_client *);
279
struct link *irc_link_new();
279
struct link *irc_link_new(void);
280 280
void link_kill(bip_t *bip, struct link *);
281 281
void unbind_from_link(struct link_client *ic);
282 282
char *nick_from_ircmask(const char *mask);
283
- 
(4-4/24)