Skip to content
Open
2 changes: 1 addition & 1 deletion microcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int main(int argc, char *argv[])
{ "listenonly", no_argument, NULL, 'o'},
{ "answerback", required_argument, NULL, 'a'},
{ "version", no_argument, NULL, 'v' },
{ },
{ 0, 0, 0, 0 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, I'd say either use { 0 } here if you don't like the c23 stuff, or use NULL instead of 0 to initialize pointers.

};

while ((opt = getopt_long(argc, argv, "hp:s:t:c:dfl:oi:a:e:v", long_options, NULL)) != -1) {
Expand Down