diff options
author | dimitri staessens <[email protected]> | 2016-12-03 14:50:45 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-12-03 14:50:45 +0100 |
commit | 0334843d9f0a73f613e1dd20e30e6f3333d12d62 (patch) | |
tree | 612b48f6f713c9447c15d6e43c8fe85175823c1d /src/tools/operf/operf.c | |
parent | ef2e50b94fbc7ce1c7dbe1f2ea860e6ab0724726 (diff) | |
download | ouroboros-0334843d9f0a73f613e1dd20e30e6f3333d12d62.tar.gz ouroboros-0334843d9f0a73f613e1dd20e30e6f3333d12d62.zip |
ipcpd, tools: Fix compilation on 32 bit linux
Fixes issues with uint64_t not corresponding with unsigned long in
printf statements. Reorganises a calculation to reduce overflows.
Diffstat (limited to 'src/tools/operf/operf.c')
-rw-r--r-- | src/tools/operf/operf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/operf/operf.c b/src/tools/operf/operf.c index 808a8807..bc7ade3a 100644 --- a/src/tools/operf/operf.c +++ b/src/tools/operf/operf.c @@ -44,8 +44,8 @@ struct c { bool sleep; int duration; - uint64_t sent; - uint64_t rcvd; + unsigned long sent; + unsigned long rcvd; flow_set_t * flows; fqueue_t * fq; |