summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-23 00:37:32 +0200
committerMartin Kosek <mkosek@redhat.com>2013-07-25 13:21:30 +0200
commitc098435040ff2236f96339e441e4a607fa2d83c3 (patch)
tree7f771675dbaf31fcc8822135c212ea0cb7448955 /daemons
parent2f80855e156fe5966ee33d486aa25f49637dd3e0 (diff)
downloadfreeipa-c098435040ff2236f96339e441e4a607fa2d83c3.tar.gz
freeipa-c098435040ff2236f96339e441e4a607fa2d83c3.tar.xz
freeipa-c098435040ff2236f96339e441e4a607fa2d83c3.zip
Use right function prototype for thread function
warning: passing argument from incompatible pointer type
Diffstat (limited to 'daemons')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h3
-rw-r--r--daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
index ae0b06fe6..7b0c2aad1 100644
--- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
+++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
@@ -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,
diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c
index 37de78689..df7cc11a9 100644
--- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c
+++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c
@@ -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) {