summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-02 14:01:26 +0100
committerVolker Lendecke <vl@samba.org>2008-02-04 19:40:08 +0100
commitc246eeb6f1a79ad6a092efddbc9392976c7dbede (patch)
tree3c419323ccb38730a85727c8f936b491e8bfec59
parentd93631f96f4aa1d3e551d511e4058f0a9f731fc2 (diff)
downloadsamba-c246eeb6f1a79ad6a092efddbc9392976c7dbede.tar.gz
samba-c246eeb6f1a79ad6a092efddbc9392976c7dbede.tar.bz2
samba-c246eeb6f1a79ad6a092efddbc9392976c7dbede.zip
Remove a static
I very much doubt that this is called enough to justify a global. If this turns out to be a hot code path, we might reconsider :-) (This used to be commit 5223d18ea2d891418a0f833f58cc3502cb26ce03)
-rw-r--r--source3/passdb/passdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 4228f6c32f..b6a4126df1 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -443,10 +443,7 @@ bool pdb_gethexhours(const char *p, unsigned char *hours)
int algorithmic_rid_base(void)
{
- static int rid_offset = 0;
-
- if (rid_offset != 0)
- return rid_offset;
+ int rid_offset;
rid_offset = lp_algorithmic_rid_base();