summaryrefslogtreecommitdiff
path: root/src/tools/oping/oping.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-12-02 21:11:52 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-12-02 21:16:15 +0100
commitf1d67740ee202c6c3af2061df8cafdd265061b59 (patch)
treee2297913905a6a9b3e89843bf6b4c05f30223d71 /src/tools/oping/oping.c
parent08aa32a59162e4383e2782dbf0419c61a0d22524 (diff)
downloadouroboros-f1d67740ee202c6c3af2061df8cafdd265061b59.tar.gz
ouroboros-f1d67740ee202c6c3af2061df8cafdd265061b59.zip
tools: Fix compilation issues on 32 bit machines
size_t is 32 bits on those machines, failing as an argument to printf. Some variables in oping and operf were changed to uint32_t and uint64_t to avoid issues.
Diffstat (limited to 'src/tools/oping/oping.c')
-rw-r--r--src/tools/oping/oping.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index 8bb01daf..98d12a7b 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -40,14 +40,15 @@
#define OPING_MAX_FLOWS 256
struct c {
- char * s_apn;
- int interval;
- int count;
- int size;
+ char * s_apn;
+ int interval;
+ uint32_t count;
+ int size;
/* stats */
- int sent;
- int rcvd;
+ uint32_t sent;
+ uint32_t rcvd;
+
double rtt_min;
double rtt_max;
double rtt_avg;