*: fix for -Wstrict-prototypes

Just some "void" missing between empty braces.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2021-08-31 23:16:57 +02:00
parent c17662db53
commit 9fb83ab17d
4 changed files with 5 additions and 6 deletions

View file

@ -1166,7 +1166,7 @@ ldpTrapSessionDown(struct nbr * nbr)
ldpTrapSession(nbr, LDPSESSIONDOWN); ldpTrapSession(nbr, LDPSESSIONDOWN);
} }
static int ldp_snmp_agentx_enabled() static int ldp_snmp_agentx_enabled(void)
{ {
main_imsg_compose_both(IMSG_AGENTX_ENABLED, NULL, 0); main_imsg_compose_both(IMSG_AGENTX_ENABLED, NULL, 0);

View file

@ -206,11 +206,10 @@ static char *posixly_correct;
whose names are inconsistent. */ whose names are inconsistent. */
#ifndef getenv #ifndef getenv
extern char *getenv(); extern char *getenv(const char *);
#endif #endif
static char *my_index(str, chr) const char *str; static char *my_index(const char *str, int chr)
int chr;
{ {
while (*str) { while (*str) {
if (*str == chr) if (*str == chr)

View file

@ -305,7 +305,7 @@ static int sr_local_block_init(uint32_t lower_bound, uint32_t upper_bound)
* Remove Segment Routing Local Block. * Remove Segment Routing Local Block.
* *
*/ */
static void sr_local_block_delete() static void sr_local_block_delete(void)
{ {
struct sr_local_block *srlb = &OspfSR.srlb; struct sr_local_block *srlb = &OspfSR.srlb;

View file

@ -69,7 +69,7 @@ static int pcep_cli_pcep_pce_config_write(struct vty *vty);
/* Internal Util Function declarations */ /* Internal Util Function declarations */
static struct pce_opts_cli *pcep_cli_find_pce(const char *pce_name); static struct pce_opts_cli *pcep_cli_find_pce(const char *pce_name);
static bool pcep_cli_add_pce(struct pce_opts_cli *pce_opts_cli); static bool pcep_cli_add_pce(struct pce_opts_cli *pce_opts_cli);
static struct pce_opts_cli *pcep_cli_create_pce_opts(); static struct pce_opts_cli *pcep_cli_create_pce_opts(const char *name);
static void pcep_cli_delete_pce(const char *pce_name); static void pcep_cli_delete_pce(const char *pce_name);
static void static void
pcep_cli_merge_pcep_pce_config_options(struct pce_opts_cli *pce_opts_cli); pcep_cli_merge_pcep_pce_config_options(struct pce_opts_cli *pce_opts_cli);