From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- include/mach/error.h | 2 -- include/mach/mig_errors.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'include/mach') diff --git a/include/mach/error.h b/include/mach/error.h index 72a2d79c..035dcf83 100644 --- a/include/mach/error.h +++ b/include/mach/error.h @@ -44,7 +44,6 @@ #define err_none (mach_error_t)0 #define ERR_SUCCESS (mach_error_t)0 -#define ERR_ROUTINE_NIL (mach_error_fn_t)0 #define err_system(x) (((x)&0x3f)<<26) @@ -89,7 +88,6 @@ #ifndef __ASSEMBLER__ typedef kern_return_t mach_error_t; -typedef mach_error_t (* mach_error_fn_t)(); #endif /* __ASSEMBLER__ */ #endif /* _MACH_ERROR_H_ */ diff --git a/include/mach/mig_errors.h b/include/mach/mig_errors.h index 5758ccf3..389ce778 100644 --- a/include/mach/mig_errors.h +++ b/include/mach/mig_errors.h @@ -68,7 +68,7 @@ typedef struct mig_symtab { #else int #endif - (*ms_routine)(); + (*ms_routine)(void); } mig_symtab_t; /* -- cgit v1.2.3