aboutsummaryrefslogtreecommitdiff
path: root/src/conversation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-22 13:21:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-22 13:21:55 +0000
commitdaed7f922eac6b057bc972df35c70b922026ac2d (patch)
treed613909e75c7a9ea887f60289b9d163f97e51ea2 /src/conversation
parent10a4f48adc48ecc8eb8c654502feb8d19eb7fe00 (diff)
downloadgnunet-daed7f922eac6b057bc972df35c70b922026ac2d.tar.gz
gnunet-daed7f922eac6b057bc972df35c70b922026ac2d.zip
-handle new error code from enum
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/test_conversation_api.c1
-rw-r--r--src/conversation/test_conversation_api_reject.c1
-rw-r--r--src/conversation/test_conversation_api_twocalls.c7
3 files changed, 7 insertions, 2 deletions
diff --git a/src/conversation/test_conversation_api.c b/src/conversation/test_conversation_api.c
index cad1a8d13..9714d5a81 100644
--- a/src/conversation/test_conversation_api.c
+++ b/src/conversation/test_conversation_api.c
@@ -385,6 +385,7 @@ call_event_handler (void *cls,
385 break; 385 break;
386 case GNUNET_CONVERSATION_EC_CALL_SUSPENDED: 386 case GNUNET_CONVERSATION_EC_CALL_SUSPENDED:
387 case GNUNET_CONVERSATION_EC_CALL_RESUMED: 387 case GNUNET_CONVERSATION_EC_CALL_RESUMED:
388 case GNUNET_CONVERSATION_EC_CALL_ERROR:
388 fprintf (stderr, "Unexpected call code: %d\n", code); 389 fprintf (stderr, "Unexpected call code: %d\n", code);
389 break; 390 break;
390 } 391 }
diff --git a/src/conversation/test_conversation_api_reject.c b/src/conversation/test_conversation_api_reject.c
index 78882c3bb..06e364ec5 100644
--- a/src/conversation/test_conversation_api_reject.c
+++ b/src/conversation/test_conversation_api_reject.c
@@ -217,6 +217,7 @@ call_event_handler (void *cls,
217 case GNUNET_CONVERSATION_EC_CALL_GNS_FAIL: 217 case GNUNET_CONVERSATION_EC_CALL_GNS_FAIL:
218 case GNUNET_CONVERSATION_EC_CALL_SUSPENDED: 218 case GNUNET_CONVERSATION_EC_CALL_SUSPENDED:
219 case GNUNET_CONVERSATION_EC_CALL_RESUMED: 219 case GNUNET_CONVERSATION_EC_CALL_RESUMED:
220 case GNUNET_CONVERSATION_EC_CALL_ERROR:
220 fprintf (stderr, "Unexpected call code: %d\n", code); 221 fprintf (stderr, "Unexpected call code: %d\n", code);
221 break; 222 break;
222 } 223 }
diff --git a/src/conversation/test_conversation_api_twocalls.c b/src/conversation/test_conversation_api_twocalls.c
index 266dc608e..3f461231d 100644
--- a/src/conversation/test_conversation_api_twocalls.c
+++ b/src/conversation/test_conversation_api_twocalls.c
@@ -115,7 +115,7 @@ struct MicContext
115 void *rdc_cls; 115 void *rdc_cls;
116 116
117 GNUNET_SCHEDULER_TaskIdentifier call_task; 117 GNUNET_SCHEDULER_TaskIdentifier call_task;
118 118
119}; 119};
120 120
121static struct MicContext call1_mic_ctx; 121static struct MicContext call1_mic_ctx;
@@ -487,6 +487,9 @@ call_event_handler (void *cls,
487 case GNUNET_CONVERSATION_EC_CALL_RESUMED: 487 case GNUNET_CONVERSATION_EC_CALL_RESUMED:
488 LOG_DEBUG ("Call %s resumed\n", cid); 488 LOG_DEBUG ("Call %s resumed\n", cid);
489 break; 489 break;
490 case GNUNET_CONVERSATION_EC_CALL_ERROR:
491 GNUNET_break (0);
492 break;
490 } 493 }
491} 494}
492 495
@@ -604,7 +607,7 @@ run (void *cls,
604int 607int
605main (int argc, char *argv[]) 608main (int argc, char *argv[])
606{ 609{
607 610
608 if (0 != GNUNET_TESTING_peer_run ("test_conversation_api_twocalls", 611 if (0 != GNUNET_TESTING_peer_run ("test_conversation_api_twocalls",
609 "test_conversation.conf", 612 "test_conversation.conf",
610 &run, NULL)) 613 &run, NULL))