]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: use modern C function definition
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 11 Mar 2020 13:06:34 +0000 (14:06 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 11 Mar 2020 13:06:34 +0000 (14:06 +0100)
And also remove an assignment without effect while we're here.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
zebra/zebra_nhg.c

index fcd90c23e89d7d994bbe1324959a76c8f6240546..f0d43756b5a5651986bf3e54fed39454b8dd8c3e 100644 (file)
@@ -687,9 +687,9 @@ static struct nh_grp *nhg_ctx_get_grp(struct nhg_ctx *ctx)
        return ctx->u.grp;
 }
 
-static struct nhg_ctx *nhg_ctx_new()
+static struct nhg_ctx *nhg_ctx_new(void)
 {
-       struct nhg_ctx *new = NULL;
+       struct nhg_ctx *new;
 
        new = XCALLOC(MTYPE_NHG_CTX, sizeof(struct nhg_ctx));