]> git.draconx.ca Git - cdecl99.git/blobdiff - t/randomdecl.c
tests: Remove some unneeded C99 syntax.
[cdecl99.git] / t / randomdecl.c
index 156e51c4842ba4ea4e375cc92651b97eb9c8e761..f4b00bc622c34a5f52acbce480f32ef0bdc37a28 100644 (file)
@@ -44,7 +44,7 @@ static const struct option lopts[] = {
 
 enum {
        MODE_CDECL,
-       MODE_ENGLISH,
+       MODE_ENGLISH
 };
 
 static void print_usage(FILE *f)
@@ -67,7 +67,7 @@ static struct cdecl *random_decl(struct test_rng *rng)
        unsigned flags = 0;
 
        decl = malloc_nofail(sizeof *decl);
-       *decl = (struct cdecl) { 0 };
+       decl->next = NULL;
 
        decl->declarators = gen_declarators(rng);
        if (decl->declarators->type != CDECL_DECL_FUNCTION)