]> git.ozlabs.org Git - ccan/blobdiff - ccan/array_size/test/compile_fail-function-param.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / array_size / test / compile_fail-function-param.c
index cb64d984247bc0a374c4d454968af5df8882958f..164c826f551681549232867b259a5ac16ce5a56e 100644 (file)
@@ -5,8 +5,8 @@ struct foo {
        unsigned int a, b;
 };
 
-int check_parameter(const struct foo array[4]);
-int check_parameter(const struct foo array[4])
+int check_parameter(const struct foo *array);
+int check_parameter(const struct foo *array)
 {
 #ifdef FAIL
        return (ARRAY_SIZE(array) == 4);
@@ -18,7 +18,7 @@ int check_parameter(const struct foo array[4])
 #endif
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
        return check_parameter(NULL);
 }