From a4577fd45b434e5fc84af6e6daf293779785f5c8 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Sun, 22 Dec 2013 10:30:23 +0000 Subject: - fix #3217 --- src/conversation/test_conversation_api.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/conversation/test_conversation_api.c') diff --git a/src/conversation/test_conversation_api.c b/src/conversation/test_conversation_api.c index 04700ef54..cad1a8d13 100644 --- a/src/conversation/test_conversation_api.c +++ b/src/conversation/test_conversation_api.c @@ -131,14 +131,14 @@ play (void *cls, const void *data) { const char *origin = cls; - static unsigned int phone_i; + static unsigned int phone_i = 1; static unsigned int call_i; char buf[32]; if (0 == strcmp (origin, "phone")) - GNUNET_snprintf (buf, sizeof (buf), "phone-%u", phone_i++); - else GNUNET_snprintf (buf, sizeof (buf), "call-%u", call_i++); + else + GNUNET_snprintf (buf, sizeof (buf), "phone-%u", phone_i++); if ( (data_size != strlen (buf) + 1) || (0 != strncmp (buf, data, data_size)) ) { @@ -148,6 +148,10 @@ play (void *cls, (int) data_size, (const char *) data); } + else + { + fprintf (stderr, "."); + } if ( (20 < call_i) && (20 < phone_i) && (NULL != call) ) -- cgit v1.2.3