summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2014-02-17 09:16:25 -0500
committerNalin Dahyabhai <nalin@dahyabhai.net>2014-02-17 09:16:25 -0500
commitcb8aa7a7fd2272b4699fea4d22ee4c19500e6d4c (patch)
tree8e180eae17d79e92c43ab5f8741cb1ef83e84a2d
parent5af4130105bf27244d828d5aa4b6557ea12596b6 (diff)
downloadslapi-nis-cb8aa7a7fd2272b4699fea4d22ee4c19500e6d4c.tar.gz
slapi-nis-cb8aa7a7fd2272b4699fea4d22ee4c19500e6d4c.tar.xz
slapi-nis-cb8aa7a7fd2272b4699fea4d22ee4c19500e6d4c.zip
Cast away type-mismatches calling xdr_free() (static analysis)
-rw-r--r--src/nis.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nis.c b/src/nis.c
index f44065e..82b4c63 100644
--- a/src/nis.c
+++ b/src/nis.c
@@ -85,7 +85,7 @@ nis_domain(struct plugin_state *state,
}
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_string, &domain);
+ xdr_free((xdrproc_t)xdr_string, (char *) &domain);
} else {
slapi_log_error(SLAPI_LOG_PLUGIN,
state->plugin_desc->spd_id,
@@ -150,7 +150,7 @@ nis_match(struct plugin_state *state,
(*reply_fn)(state, cdata, reply, reply_xdrs);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_key, &req_key);
+ xdr_free((xdrproc_t)xdr_ypreq_key, (char *) &req_key);
} else {
/* XXX */
}
@@ -211,7 +211,7 @@ nis_first(struct plugin_state *state,
(*reply_fn)(state, cdata, reply, reply_xdrs);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_nokey, &req_nokey);
+ xdr_free((xdrproc_t)xdr_ypreq_nokey, (char *) &req_nokey);
} else {
/* XXX */
}
@@ -300,7 +300,7 @@ nis_next(struct plugin_state *state,
(*reply_fn)(state, cdata, reply, reply_xdrs);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_key, &req_key);
+ xdr_free((xdrproc_t)xdr_ypreq_key, (char *) &req_key);
} else {
/* XXX */
}
@@ -369,7 +369,7 @@ nis_master(struct plugin_state *state,
(*reply_fn)(state, cdata, reply, reply_xdrs);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_nokey, &req_nokey);
+ xdr_free((xdrproc_t)xdr_ypreq_nokey, (char *) &req_nokey);
} else {
/* XXX */
}
@@ -420,7 +420,7 @@ nis_order(struct plugin_state *state,
(*reply_fn)(state, cdata, reply, reply_xdrs);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_nokey, &req_nokey);
+ xdr_free((xdrproc_t)xdr_ypreq_nokey, (char *) &req_nokey);
} else {
/* XXX */
}
@@ -512,7 +512,7 @@ nis_maplist(struct plugin_state *state,
nis_free_maplist_cb_result(&cbdata);
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_string, &domain);
+ xdr_free((xdrproc_t)xdr_string, (char *) &domain);
} else {
/* XXX */
}
@@ -940,7 +940,7 @@ nis_all(struct plugin_state *state,
}
map_unlock();
done_with_lock:
- xdr_free((xdrproc_t)xdr_ypreq_nokey, &req_nokey);
+ xdr_free((xdrproc_t)xdr_ypreq_nokey, (char *) &req_nokey);
/* Return the cookie if we can, else destroy it. */
if (continuation_cookie) {
*continuation_cookie = cookie;
@@ -1246,7 +1246,7 @@ sent_reply:
xdr_destroy(&reply_xdrs);
done:
- xdr_free((xdrproc_t)xdr_callmsg, &request);
+ xdr_free((xdrproc_t)xdr_callmsg, (char *) &request);
xdr_destroy(&request_xdrs);
return;
}