diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-08-31 23:16:57 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-09-02 13:00:35 +0200 | 
| commit | 9fb83ab17d5135dad229841f43651a1aa3cd6578 (patch) | |
| tree | 87ce17f7551687dff0cf6a2df633a1f8dbb49d7a | |
| parent | c17662db538387b6b0244a59f66d86acfbac97cd (diff) | |
*: fix for -Wstrict-prototypes
Just some "void" missing between empty braces.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | ldpd/ldp_snmp.c | 2 | ||||
| -rw-r--r-- | lib/getopt.c | 5 | ||||
| -rw-r--r-- | ospfd/ospf_sr.c | 2 | ||||
| -rw-r--r-- | pathd/path_pcep_cli.c | 2 | 
4 files changed, 5 insertions, 6 deletions
diff --git a/ldpd/ldp_snmp.c b/ldpd/ldp_snmp.c index 3932df48e0..dfc7d145fe 100644 --- a/ldpd/ldp_snmp.c +++ b/ldpd/ldp_snmp.c @@ -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); diff --git a/lib/getopt.c b/lib/getopt.c index 71799c9b6d..a33d196015 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -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) diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index bf2c5f3c40..9a9e64cc23 100644 --- a/ospfd/ospf_sr.c +++ b/ospfd/ospf_sr.c @@ -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; diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c index 829df3179c..a6f253d3e3 100644 --- a/pathd/path_pcep_cli.c +++ b/pathd/path_pcep_cli.c @@ -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);  | 
