X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Ftests%2Ftest_silcfdstream.c;h=dfc231733b92040517a864e970f4f1dac5c205b6;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=e4d53a59e7316d327107c6c8a8875ded929b7f14;hpb=de2519091c6226ee44eb2fa6935bae2f4f5df44d;p=silc.git diff --git a/lib/silcutil/tests/test_silcfdstream.c b/lib/silcutil/tests/test_silcfdstream.c index e4d53a59..dfc23173 100644 --- a/lib/silcutil/tests/test_silcfdstream.c +++ b/lib/silcutil/tests/test_silcfdstream.c @@ -58,7 +58,7 @@ SILC_FSM_STATE(st_readwrite) } SILC_LOG_DEBUG(("Creating FD stream (two fds)")); - stream = silc_fd_stream_create2(fd1, fd2); + stream = silc_fd_stream_create2(fd1, fd2, NULL); if (!stream) { SILC_LOG_DEBUG(("Error creating stream")); goto err; @@ -133,7 +133,7 @@ SILC_FSM_STATE(st_write) SILC_LOG_DEBUG(("Open file /tmp/test_silcfdstream for writing")); SILC_LOG_DEBUG(("Creating FD stream")); unlink("/tmp/test_silcfdstream"); - stream = silc_fd_stream_file("/tmp/test_silcfdstream", FALSE, TRUE); + stream = silc_fd_stream_file("/tmp/test_silcfdstream", FALSE, TRUE, NULL); if (!stream) { SILC_LOG_DEBUG(("Error creating stream")); goto err; @@ -199,11 +199,11 @@ int main(int argc, char **argv) if (argc > 1 && !strcmp(argv[1], "-d")) { silc_log_debug(TRUE); silc_log_debug_hexdump(TRUE); - silc_log_set_debug_string("*fdstream*"); + silc_log_set_debug_string("*fdstream*,*errno*"); } SILC_LOG_DEBUG(("Allocating scheduler")); - schedule = silc_schedule_init(0, NULL); + schedule = silc_schedule_init(0, NULL, NULL); if (!schedule) goto err;