Use right function prototype for thread function

warning: passing argument from incompatible pointer type
This commit is contained in:
Lukas Slebodnik 2013-07-23 00:37:32 +02:00 committed by Martin Kosek
parent 2f80855e15
commit c098435040
2 changed files with 4 additions and 2 deletions

View File

@ -98,7 +98,8 @@ struct ipa_cldap_req {
struct kvp_list kvps; struct kvp_list kvps;
}; };
void *ipa_cldap_worker(struct ipa_cldap_ctx *ctx); /*void *ipa_cldap_worker(struct ipa_cldap_ctx *ctx);*/
void *ipa_cldap_worker(void *arg);
int ipa_cldap_netlogon(struct ipa_cldap_ctx *ctx, int ipa_cldap_netlogon(struct ipa_cldap_ctx *ctx,
struct ipa_cldap_req *req, struct ipa_cldap_req *req,

View File

@ -314,11 +314,12 @@ static struct ipa_cldap_req *ipa_cldap_recv_dgram(struct ipa_cldap_ctx *ctx)
return req; return req;
} }
void *ipa_cldap_worker(struct ipa_cldap_ctx *ctx) void *ipa_cldap_worker(void *arg)
{ {
struct ipa_cldap_req *req; struct ipa_cldap_req *req;
struct pollfd fds[2]; struct pollfd fds[2];
bool stop = false; bool stop = false;
struct ipa_cldap_ctx *ctx = (struct ipa_cldap_ctx *) arg;
int ret; int ret;
while (!stop) { while (!stop) {