Use right function prototype for thread function
warning: passing argument from incompatible pointer type
This commit is contained in:
1 parent
2f80855e15
commit
c098435040
2 files changed
+4
-2
No files matched your search
@@ -98,7 +98,8 @@ struct ipa_cldap_req {
|
||||
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,
|
||||
struct ipa_cldap_req *req,
|
||||
|
||||
@@ -314,11 +314,12 @@ static struct ipa_cldap_req *ipa_cldap_recv_dgram(struct ipa_cldap_ctx *ctx)
|
||||
return req;
|
||||
}
|
||||
|
||||
void *ipa_cldap_worker(struct ipa_cldap_ctx *ctx)
|
||||
void *ipa_cldap_worker(void *arg)
|
||||
{
|
||||
struct ipa_cldap_req *req;
|
||||
struct pollfd fds[2];
|
||||
bool stop = false;
|
||||
struct ipa_cldap_ctx *ctx = (struct ipa_cldap_ctx *) arg;
|
||||
int ret;
|
||||
|
||||
while (!stop) {
|
||||
|
||||
Reference in new issue
Block a user