diff options
author | vpai <vpai@google.com> | 2014-12-01 12:41:41 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2014-12-01 14:38:21 -0800 |
commit | 8ac074ba20ed23f597eddf0a2d07293ec80d88a8 (patch) | |
tree | f8e0be42439d7667ca69dc91a9f7b2d83573e66c /test/core | |
parent | 29e1d295eff43d05af3e3475e911b3f5df2b5522 (diff) |
Remove argument to grpc_em_alarm_cancel as it isn't used.
Change on 2014/12/01 by vpai <vpai@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81088661
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/eventmanager/em_test.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/core/eventmanager/em_test.c b/test/core/eventmanager/em_test.c index 2bcfe86c3b..fceabff533 100644 --- a/test/core/eventmanager/em_test.c +++ b/test/core/eventmanager/em_test.c @@ -580,7 +580,6 @@ static void test_grpc_em_alarm() { gpr_timespec alarm_deadline; gpr_timespec followup_deadline; - alarm_arg *cancel_arg = NULL; alarm_arg arg; alarm_arg arg2; void *fdone; @@ -649,7 +648,7 @@ static void test_grpc_em_alarm() { GRPC_EM_OK); GPR_ASSERT(grpc_em_alarm_add(&alarm_to_cancel, gpr_time_add(tv2, gpr_now())) == GRPC_EM_OK); - switch (grpc_em_alarm_cancel(&alarm_to_cancel, (void **)&cancel_arg)) { + switch (grpc_em_alarm_cancel(&alarm_to_cancel)) { case GRPC_EM_OK: gpr_log(GPR_INFO, "Alarm cancel succeeded"); break; @@ -700,10 +699,6 @@ static void test_grpc_em_alarm() { GPR_ASSERT(0); } - if (cancel_arg != &arg2) { - gpr_log(GPR_ERROR, "Alarm cancel arg address wrong"); - GPR_ASSERT(0); - } if (fdone != (void *)&arg2.fcb_arg) { gpr_log(GPR_ERROR, "Followup callback #2 not invoked properly %p %p", fdone, &arg2.fcb_arg); |