tevent: fix compiler warning in tevent_context_init_byname()
authorStefan Metzmacher <metze@samba.org>
Sun, 17 Feb 2013 15:36:25 +0000 (16:36 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Mar 2013 09:48:38 +0000 (10:48 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tevent/tevent.c

index aa758de64037b35b2cd039119feaf869b08c63e5..3b273d6c531101954bf752f4d408ae7de88f4b5b 100644 (file)
@@ -273,7 +273,7 @@ struct tevent_context *tevent_context_init_ops(TALLOC_CTX *mem_ctx,
 struct tevent_context *tevent_context_init_byname(TALLOC_CTX *mem_ctx,
                                                  const char *name)
 {
-       struct tevent_ops *ops;
+       const struct tevent_ops *ops;
 
        ops = tevent_find_ops_byname(name);
        if (ops == NULL) {