use sizeof to avoid double use of a length define
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 24 Apr 2018 14:46:47 +0000 (16:46 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Apr 2018 22:51:31 +0000 (00:51 +0200)
commitdec7b1884a555c941110526cc6cb9dfa08fd51b9
tree5fa8972c1f146d7732590659b59978ed53c9c8f5
parent4e96556a21bc60a89b05bd92163a5897ae2b43a4
use sizeof to avoid double use of a length define

Only a cosmetic change: the *_LEN defines are already used
when defining the buffer. Using sizeof() ensures that the length
stays consistent, even if the definition is modified.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/tep_termination/main.c
examples/vhost/main.c
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/bsdapp/eal/eal_thread.c
lib/librte_eal/common/eal_common_proc.c
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_thread.c
lib/librte_eal/linuxapp/eal/eal_timer.c
lib/librte_vhost/socket.c