lib/tsocket: add generic socket abstraction layer
[ira/wip.git] / lib / torture / torture.c
index 6b2a5b1061cc1e672c8e5197f12950112967b910..17adce94e57395b923ada59b7fcd25a89d31d26d 100644 (file)
@@ -18,7 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "includes.h"
+#include "source4/include/includes.h"
 #include "../torture/torture.h"
 #include "../lib/util/dlinklist.h"
 #include "param/param.h"
@@ -40,7 +40,7 @@ struct torture_results *torture_results_init(TALLOC_CTX *mem_ctx, const struct t
 /**
  * Initialize a torture context
  */
-struct torture_context *torture_context_init(struct event_context *event_ctx, 
+struct torture_context *torture_context_init(struct tevent_context *event_ctx, 
                                                                                         struct torture_results *results)
 {
        struct torture_context *torture = talloc_zero(event_ctx, 
@@ -310,7 +310,7 @@ static bool internal_torture_run_test(struct torture_context *context,
                                          bool already_setup)
 {
        bool success;
-       char *old_testname;
+       char *old_testname = NULL;
 
        if (tcase == NULL || strcmp(test->name, tcase->name) != 0) { 
                old_testname = context->active_testname;