X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Ftests%2Ftest_silcfdstream.c;h=c0039b1ce5f73d72deef4b6035e42bc5751f06b4;hb=aa427d8e98d1b24952f869062536ca6c49670479;hp=e4d53a59e7316d327107c6c8a8875ded929b7f14;hpb=bdf83e1e0e5c65a888075986a452c6e431047a6d;p=silc.git diff --git a/lib/silcutil/tests/test_silcfdstream.c b/lib/silcutil/tests/test_silcfdstream.c index e4d53a59..c0039b1c 100644 --- a/lib/silcutil/tests/test_silcfdstream.c +++ b/lib/silcutil/tests/test_silcfdstream.c @@ -32,7 +32,7 @@ SILC_FSM_STATE(st_end) { unlink("/tmp/test_silcfdstream"); unlink("/tmp/test_silcfdstream_copy"); - return SILC_FSM_FINISH; + SILC_FSM_FINISH; } SILC_FSM_STATE(st_readwrite) @@ -83,7 +83,7 @@ SILC_FSM_STATE(st_readwrite) if (i == -1) { SILC_LOG_DEBUG(("Would block, write later")); silc_fsm_next(fsm, st_end); - return SILC_FSM_WAIT; + SILC_FSM_WAIT; } if (i == -2) { @@ -99,7 +99,7 @@ SILC_FSM_STATE(st_readwrite) if (ret == -1) { SILC_LOG_DEBUG(("Would block, read later")); silc_fsm_next(fsm, st_end); - return SILC_FSM_WAIT; + SILC_FSM_WAIT; } if (ret == -2) { @@ -117,11 +117,11 @@ SILC_FSM_STATE(st_readwrite) } silc_fsm_next(fsm, st_end); - return SILC_FSM_CONTINUE; + SILC_FSM_CONTINUE; err: silc_fsm_next(fsm, st_end); - return SILC_FSM_CONTINUE; + SILC_FSM_CONTINUE; } SILC_FSM_STATE(st_write) @@ -159,7 +159,7 @@ SILC_FSM_STATE(st_write) if (ret == -1) { SILC_LOG_DEBUG(("Would block, write later")); silc_fsm_next(fsm, st_readwrite); - return SILC_FSM_WAIT; + SILC_FSM_WAIT; } if (ret == -2) { @@ -179,11 +179,11 @@ SILC_FSM_STATE(st_write) SILC_LOG_DEBUG(("Continue to next state")); silc_fsm_next(fsm, st_readwrite); - return SILC_FSM_CONTINUE; + SILC_FSM_CONTINUE; err: silc_fsm_next(fsm, st_end); - return SILC_FSM_CONTINUE; + SILC_FSM_CONTINUE; } static void fsm_dest(SilcFSM fsm, void *fsm_context, void *context)