Move wbc global variables into global context instead
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Sun, 22 Feb 2015 23:31:48 +0000 (23:31 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 9 Mar 2015 23:50:10 +0000 (00:50 +0100)
commit2664d9070f3c21231627380822e619fb695db662
tree1b817d958263ea76f7c3b0ec0bdd4db8af7be406
parent063c56dba590eec69439eb791a420b40505d4cc0
Move wbc global variables into global context instead

There are some global variables in use in the libwbclient
library. Now that we have a context, move these into it so that
they are thread-safe when the wbcCtx* functions are used.

Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/libwbclient/wbc_pwd.c
nsswitch/libwbclient/wbclient.c
nsswitch/libwbclient/wbclient_internal.h