From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- libshouldbeinlibc/portinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc/portinfo.c') diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/portinfo.c index 42b22081..75a20bb9 100644 --- a/libshouldbeinlibc/portinfo.c +++ b/libshouldbeinlibc/portinfo.c @@ -43,14 +43,14 @@ print_port_info (mach_port_t name, mach_port_type_t type, task_t task, { int hex_names = (show & PORTINFO_HEX_NAMES); int first = 1, subfirst = 1; - void comma () + void comma (void) { if (first) first = 0; else fprintf (stream, ", "); } - void subcomma () + void subcomma (void) { if (subfirst) subfirst = 0; -- cgit v1.2.3