commit 3d4332787af6f26808e6f27aaae14e1ebcb47437
parent b1cc4843e941f5cc44243bb547baa00a21a7a651
Author: sin <sin@2f30.org>
Date: Mon, 22 Feb 2016 14:12:10 +0000
Group together related declarations
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/sbm.c b/sbm.c
@@ -207,12 +207,10 @@ void
loop(char *ifname, long count, struct timeval *delay)
{
struct timeval old, now, diff;
- unsigned long long oldrxbytes, rxbytes;
- unsigned long long oldtxbytes, txbytes;
- unsigned long long oldrxpps, rxpps;
- unsigned long long oldtxpps, txpps;
- unsigned long long diffrxbits, difftxbits;
- unsigned long long diffrxpps, difftxpps;
+ unsigned long long oldrxbytes, rxbytes, diffrxbits;
+ unsigned long long oldtxbytes, txbytes, difftxbits;
+ unsigned long long oldrxpps, rxpps, diffrxpps;
+ unsigned long long oldtxpps, txpps, difftxpps;
long n = 0;
clock_gettime_tv(CLOCK_MONOTONIC, &old);