gotwebd: use nitems() instead of ACTIONS__MAX
commit0c6bdfca5ba9050d77d0984aee14f03aabd64bfc
authorOmar Polo <op@omarpolo.com>
Mon, 18 Dec 2023 12:02:57 +0000 (18 12:02 +0000)
committerOmar Polo <op@omarpolo.com>
Mon, 18 Dec 2023 12:02:57 +0000 (18 12:02 +0000)
tree9b1c29564d2cef4570bd45bdaefdd52839b5152f
parentdc1262366a5757445d677443efb3077f4bcf3c29
gotwebd: use nitems() instead of ACTIONS__MAX

I feel safer by using the explicit size of the table rather than
an hypothetical maximum value given by the enum.  Mostly because
in the past I edited a table and forgot to remove the corresponding
enum value.

ok stsp@
gotwebd/gotweb.c
gotwebd/gotwebd.h