From ab9b40939aa8a68902e0fc38a7ba1db165d10788 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 27 Feb 2022 14:18:58 -0500 Subject: [PATCH] Don't use [static n] in prototypes. This modern C syntax is mostly useless and introduces compatibility problems for no real benefit. --- src/libupkg.c | 2 +- src/upkg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libupkg.c b/src/libupkg.c index ed652ac..f6de123 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -132,7 +132,7 @@ size_t upkg_decode_index(long *val, const unsigned char *bytes, size_t n) return 0; } -static struct upkg_priv *init_upkg(unsigned char hdr[static UPKG_HDR_SIZE]) +static struct upkg_priv *init_upkg(const unsigned char *hdr) { struct upkg_priv *pkg; diff --git a/src/upkg.c b/src/upkg.c index 6c8cbc1..db9a747 100644 --- a/src/upkg.c +++ b/src/upkg.c @@ -171,7 +171,7 @@ static void print_upkg_object_flags(const char *prefix, unsigned long flags) printf("%sDebugDestroy\n", prefix); } -void print_guid(unsigned char guid[static 16]) +static void print_guid(unsigned char *guid) { for (unsigned i = 0; i < 16; i++) { printf("%02hhx", guid[i]); -- 2.43.2