Remove a static
authorVolker Lendecke <vl@samba.org>
Sat, 2 Feb 2008 13:01:26 +0000 (14:01 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 4 Feb 2008 18:40:08 +0000 (19:40 +0100)
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)

source3/passdb/passdb.c

index 4228f6c32fbd37efbc59872b12870686453fb258..b6a4126df1c88eb1c99068f600af0049a33a31c8 100644 (file)
@@ -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();