git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d0032
)
Remove a static
author
Volker Lendecke
<vl@samba.org>
Sat, 2 Feb 2008 13:01:26 +0000
(14:01 +0100)
committer
Volker 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 :-)
source/passdb/passdb.c
patch
|
blob
|
history
diff --git
a/source/passdb/passdb.c
b/source/passdb/passdb.c
index 4228f6c32fbd37efbc59872b12870686453fb258..b6a4126df1c88eb1c99068f600af0049a33a31c8 100644
(file)
--- a/
source/passdb/passdb.c
+++ b/
source/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();