diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-24 21:22:51 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-24 21:22:51 +0200 |
commit | e5f567c7647acefa295850f5ab6ccf2c10329c44 (patch) | |
tree | 56747779db27822f750967fbc0dfaf0566b4f42d /src/tools/cbr/cbr.c | |
parent | d74d67a0e2d3de0ec208ed9b839815a70d84f727 (diff) | |
download | ouroboros-e5f567c7647acefa295850f5ab6ccf2c10329c44.tar.gz ouroboros-e5f567c7647acefa295850f5ab6ccf2c10329c44.zip |
tools: fixes comments on d74d67a
Diffstat (limited to 'src/tools/cbr/cbr.c')
-rw-r--r-- | src/tools/cbr/cbr.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tools/cbr/cbr.c b/src/tools/cbr/cbr.c index 2317cd62..d7077e9c 100644 --- a/src/tools/cbr/cbr.c +++ b/src/tools/cbr/cbr.c @@ -31,10 +31,7 @@ #include <stdbool.h> #define SERVER_AP_NAME "cbr-server" -#define CLIENT_AP_NAME "echo-client" - -#define MILLION 1000000 -#define BILLION 1000000000 +#define CLIENT_AP_NAME "cbr-client" #define BUF_SIZE 1500 @@ -92,7 +89,7 @@ int main(int argc, char ** argv) duration = strtol(*(++argv), &rem, 10); --argc; } else if (strcmp(*argv, "-s") == 0 || - strcmp(*argv, "--size") == 0) { + strcmp(*argv, "--size") == 0) { size = strtol(*(++argv), &rem, 10); --argc; } else if (strcmp(*argv, "-r") == 0 || @@ -106,7 +103,7 @@ int main(int argc, char ** argv) rate *= BILLION; --argc; } else if (strcmp(*argv, "-l") == 0 || - strcmp(*argv, "--listen") == 0) { + strcmp(*argv, "--listen") == 0) { server = true; } else { usage(); |