]> git.ipfire.org Git - thirdparty/openwrt.git/commit
button-hotplug: use flex array and not pointer hack 22170/head
authorRosen Penev <rosenp@gmail.com>
Tue, 30 Dec 2025 03:53:50 +0000 (19:53 -0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 3 Mar 2026 12:09:35 +0000 (13:09 +0100)
commitc4e285049e9c3f2e21e338cd9f7b0ee40a9b6811
tree4b10a203143ce04b2d9c1901ae60b1635e706139
parent7a76074574d1a5c2e5d2a3965af59f15ac2176bb
button-hotplug: use flex array and not pointer hack

The &pointer + 1 trick is a C89 trick to point to area allocated after
the size of the struct. We have struct_size and flex arrays now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22170
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/button-hotplug/src/button-hotplug.c