--- tests/rqst/rqst.c.orig 2005-10-25 14:52:06.000000000 +1000 +++ tests/rqst/rqst.c 2013-09-24 00:21:54.000000000 +1000 @@ -1,5 +1,6 @@ #include "libut/ut.h" #include + #include int wget_done_cb(char *name, void *data, int flags, UT_iob *io[2]) { char *out; @@ -7,7 +8,7 @@ int wget_done_cb(char *name, void *data, if (flags & UTFD_IS_REQFAILURE) { UT_LOG(Error, "wget failed"); - return; + return -1; } /* we always expect REQUESTFIN since there was no REQFALURE */ @@ -21,6 +22,7 @@ int wget_done_cb(char *name, void *data, /* the iobs are our responsibility to free */ UT_iob_free(io[0]); UT_iob_free(io[1]); + return 0; } int wget_test_cmd(int argc, char *argv[] ) { @@ -66,4 +68,5 @@ int main(int argc, char **argv) { UT_shl_cmd_create("wget", "test http get to host", wget_test_cmd, NULL); UT_shl_cmd_create("ascii", "show a-z ascii values", ascii_cmd, NULL); UT_event_loop(); + return 0; }