]> git.meshlink.io Git - meshlink/commit
Convert sizeof foo to sizeof(foo).
authorGuus Sliepen <guus@meshlink.io>
Sun, 13 Aug 2017 13:06:51 +0000 (15:06 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 13 Aug 2017 13:06:51 +0000 (15:06 +0200)
commit76c7550c8ab0e9c0ee14a9c396baa008cfb9bc42
treedf5a35b59465f12f17f97014943d81d32f79210c
parent3c56342ef05b0f81bcd9feba5d86e2bff8a0cb94
Convert sizeof foo to sizeof(foo).

While technically sizeof is an operator and doesn't need the parentheses
around expressions it operates on, except if they are type names, code
formatters don't seem to handle this very well.
29 files changed:
examples/channels.c
examples/chat.c
examples/chatpp.cc
examples/manynodes.c
src/conf.c
src/discovery.c
src/event.c
src/graph.c
src/hash.c
src/logger.c
src/meshlink.c
src/meshlink_queue.h
src/meta.c
src/net_packet.c
src/net_socket.c
src/netutl.c
src/node.c
src/prf.c
src/protocol.c
src/protocol_auth.c
src/protocol_key.c
src/route.c
src/sptps.c
src/sptps_speed.c
src/sptps_test.c
src/utils.c
src/xalloc.h
test/channels-fork.c
test/sign-verify.c