From b32b59d47f8ec597be9d215e5e260e5d1411d3a4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 31 May 2010 10:36:02 -0400 Subject: s3:smbd make yp cache local. The my_yp_domain variable is just a static cache needed to avoid making over and over expensive and potentially blocking calls to yp_get_default_domain(). Instead of keeping this onto the smbd_server_connection struct, just keep it local to the only function ever using this variable. This disentagle this function (and a number of calling functions) from having to pass around smbd_server_connection and thus having to link against smbd. It also removes a few ifdefs. Nothing changes from a global/local pov, as the smbd_server_connection variable passed around is also a global one. Signed-off-by: Andreas Schneider --- source3/smbd/globals.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'source3/smbd/globals.h') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index cd4516501b..36661482ce 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -515,9 +515,6 @@ struct smbd_server_connection { user_struct *validated_users; uint16_t next_vuid; int num_validated_vuids; -#ifdef HAVE_NETGROUP - char *my_yp_domain; -#endif } sessions; struct { connection_struct *Connections; -- cgit