diff --git a/net/hookers/hookers.c b/net/hookers/hookers.c index c753789d568c2950656dfeb90c8e3739f39581a6..4791f307b4c93f6b5ea14215dc44ce3ade6de3b8 100644 --- a/net/hookers/hookers.c +++ b/net/hookers/hookers.c @@ -191,7 +191,7 @@ inet6_stream_ops_getname_stub(struct socket *sock, return __getname_hstub(&place_table[4], sock, uaddr, peer); } -#define PLACE_TABLE_SZ (sizeof((place_table)) / sizeof((place_table)[0])) +#define PLACE_TABLE_SZ ARRAY_SIZE(place_table) int hooker_install(const void *place, struct hooker *h) {