]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs.c: Remove enum afs_table_num.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 15 Mar 2022 18:09:46 +0000 (19:09 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commit328a4081d2ca9a99cbd87bf58133254dea77a86a
tree26d821b7e484ebebff1fadf36dee61d8f6f1c6f2
parent910cf7680d7a00daa68ab250003f9d800972fbe5
afs.c: Remove enum afs_table_num.

The definition of afs_tables[] does not need this enumeration to
initialize the array and everybody else just needs the number of
elements which can as well be obtained with ARRAY_SIZE.

Since enum values are of type int but ARRAY_SIZE expands to a size_t
value we need an adjustment for a format string in open_afs_tables().
afs.c