]> git.draconx.ca Git - upkg.git/commitdiff
Don't use [static n] in prototypes.
authorNick Bowler <nbowler@draconx.ca>
Sun, 27 Feb 2022 19:18:58 +0000 (14:18 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 27 Feb 2022 19:18:58 +0000 (14:18 -0500)
This modern C syntax is mostly useless and introduces compatibility
problems for no real benefit.

src/libupkg.c
src/upkg.c

index ed652ac9fdd6e0cd0e39ae2cb087cdf09d56fd87..f6de123c8d972895522282ced9238acd739d110e 100644 (file)
@@ -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;
 
index 6c8cbc10f48fbc95e13b1896cb8d44317ced00eb..db9a747d39eb1ccedaaa6ed49d61f45b5a09c418 100644 (file)
@@ -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]);