commit 809a0cb53708c2842f9fcd0fd1122094cd2f7575 from: Stefan Sperling date: Mon Oct 28 09:09:59 2024 UTC fix initialization of systatcs sentinel in commands.c Repairs the following compile-time warning: nsh/commands.c:403:17: warning: suggest braces around initialization of subobject [-Wmissing-braces] { 0, 0, 0, 0 } ^~~~ { } commit - 15a2fabe4d49f7c280b90dcce141c15804dbc37f commit + 809a0cb53708c2842f9fcd0fd1122094cd2f7575 blob - 715e9630c77e4973a5922efc12dba14edc052442 blob + 317336b57816b01e248841c162bfb6d37cd71591 --- commands.c +++ commands.c @@ -365,6 +365,7 @@ struct prot1 ldcs[] = { { LDAPCTL, "stats", NULL } }, { 0, 0, { 0 } } }; + struct prot1 systatcs[] = { { "interface", "Interface", { SYSTAT, "-d 3", "ifstat", NULL, NULL, NULL } }, @@ -400,11 +401,9 @@ struct prot1 systatcs[] = { { SYSTAT, "-d 3", "malloc", NULL, NULL, NULL } }, { "bucket", "Kernel malloc bucket", { SYSTAT, "-d 3", "bucket", NULL, NULL, NULL } }, - { 0, 0, 0, 0 } + { 0, 0, { 0 } } }; - - extern struct prot1 bgcs[]; /* show yyy zzz */