Skip to content

Commit

Permalink
*: fix for -Wstrict-prototypes
Browse files Browse the repository at this point in the history
Just some "void" missing between empty braces.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Sep 2, 2021
1 parent c17662d commit 9fb83ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ldpd/ldp_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ ldpTrapSessionDown(struct nbr * nbr)
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);

Expand Down
5 changes: 2 additions & 3 deletions lib/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ static char *posixly_correct;
whose names are inconsistent. */

#ifndef getenv
extern char *getenv();
extern char *getenv(const char *);
#endif

static char *my_index(str, chr) const char *str;
int chr;
static char *my_index(const char *str, int chr)
{
while (*str) {
if (*str == chr)
Expand Down
2 changes: 1 addition & 1 deletion ospfd/ospf_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int sr_local_block_init(uint32_t lower_bound, uint32_t upper_bound)
* 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;

Expand Down
2 changes: 1 addition & 1 deletion pathd/path_pcep_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int pcep_cli_pcep_pce_config_write(struct vty *vty);
/* Internal Util Function declarations */
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 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_merge_pcep_pce_config_options(struct pce_opts_cli *pce_opts_cli);
Expand Down

0 comments on commit 9fb83ab

Please sign in to comment.