CLEANUP: atomic/tree-wide: replace single increments/decrements with inc/dec
This patch replaces roughly all occurrences of an HA_ATOMIC_ADD(&foo, 1)
or HA_ATOMIC_SUB(&foo, 1) with the equivalent HA_ATOMIC_INC(&foo) and
HA_ATOMIC_DEC(&foo) respectively. These are 507 changes over 45 files.
diff --git a/src/ev_poll.c b/src/ev_poll.c
index 7ef9df0..4ed1b9e 100644
--- a/src/ev_poll.c
+++ b/src/ev_poll.c
@@ -220,7 +220,7 @@
fd = poll_events[count].fd;
#ifdef DEBUG_FD
- _HA_ATOMIC_ADD(&fdtab[fd].event_count, 1);
+ _HA_ATOMIC_INC(&fdtab[fd].event_count);
#endif
if (!(e & ( POLLOUT | POLLIN | POLLERR | POLLHUP | POLLRDHUP )))
continue;