aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2020-05-18 17:23:04 +0200
committerMichael Tuexen <tuexen@fh-muenster.de>2020-05-18 17:23:04 +0200
commit18a36668a3c0f6a605e19177272af3cd7855cccf (patch)
treefacbf92328beb6f38f74f8d7a862975e15bc834b
parent2c385effd682cd1bc7eee443d4e45bfe72cb5cdd (diff)
downloadusrsctp-18a36668a3c0f6a605e19177272af3cd7855cccf.tar.gz
Fix format string.
-rw-r--r--programs/tsctp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/tsctp.c b/programs/tsctp.c
index 60942bf6..f6e010d3 100644
--- a/programs/tsctp.c
+++ b/programs/tsctp.c
@@ -111,7 +111,7 @@ char Usage[] =
#define BUFFERSIZE (1<<16)
static int verbose, very_verbose;
-static unsigned int done;
+static unsigned int done;
void stop_sender(int sig)
{
@@ -794,7 +794,7 @@ int main(int argc, char **argv)
gettimeofday(&time_now, NULL);
timersub(&time_now, &time_start, &time_diff);
seconds = time_diff.tv_sec + (double)time_diff.tv_usec/1000000;
- printf("%s of %lu messages of length %u took %f seconds.\n",
+ printf("%s of %lu messages of length %d took %f seconds.\n",
"Sending", messages, length, seconds);
throughput = (double)messages * (double)length / seconds;
printf("Throughput was %f Byte/sec.\n", throughput);