]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: fix for -Wstrict-prototypes
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 31 Aug 2021 21:16:57 +0000 (23:16 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 2 Sep 2021 11:00:35 +0000 (13:00 +0200)
Just some "void" missing between empty braces.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ldpd/ldp_snmp.c
lib/getopt.c
ospfd/ospf_sr.c
pathd/path_pcep_cli.c

index 3932df48e027d610755e2970cb19f25214436765..dfc7d145fedffe391de2fa24344d2cc983447ef9 100644 (file)
@@ -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);
 
index 71799c9b6d5a8a201c3cc20a357f9453881bc194..a33d196015b43d820ad482018479783dff4c01fc 100644 (file)
@@ -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)
index bf2c5f3c40cca342b491365a157b2c2616028aa4..9a9e64cc239e20b0b5f6443410b1503db8f265bb 100644 (file)
@@ -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;
 
index 829df3179c267d7baf2712279a7b1e5fcd92ad9c..a6f253d3e32451511372fe76e21936b3c6a3da8c 100644 (file)
@@ -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);