diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
| commit | 56048d13b73ec6e6a9c59d62e82f41e69a3994bd (patch) | |
| tree | 49fc5d50e739a399897425756c08a73ba5924ddb /test/111_h48map/h48map_tests.c | |
| parent | 0f4931c8de298b0f97aba1757c9538f48adb30c6 (diff) | |
| download | nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.tar.gz nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.zip | |
More safety with pointers using VLA function parameters
Diffstat (limited to '')
| -rw-r--r-- | test/111_h48map/h48map_tests.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/111_h48map/h48map_tests.c b/test/111_h48map/h48map_tests.c index 7fdfb3d..927b157 100644 --- a/test/111_h48map/h48map_tests.c +++ b/test/111_h48map/h48map_tests.c | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | #define MAXPOS 1000 | 3 | #define MAXPOS 1000 |
| 4 | 4 | ||
| 5 | void h48map_create(h48map_t *, uint64_t, uint64_t); | 5 | void h48map_create(h48map_t [static 1], uint64_t, uint64_t); |
| 6 | void h48map_destroy(h48map_t *); | 6 | void h48map_destroy(h48map_t [static 1]); |
| 7 | void h48map_insertmin(h48map_t *, uint64_t, uint64_t); | 7 | void h48map_insertmin(h48map_t [static 1], uint64_t, uint64_t); |
| 8 | uint64_t h48map_value(h48map_t *, uint64_t); | 8 | uint64_t h48map_value(h48map_t [static 1], uint64_t); |
| 9 | kvpair_t h48map_nextkvpair(h48map_t *, uint64_t *); | 9 | kvpair_t h48map_nextkvpair(h48map_t [static 1], uint64_t [static 1]); |
| 10 | 10 | ||
| 11 | char str[STRLENMAX]; | 11 | char str[STRLENMAX]; |
| 12 | 12 | ||
