summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assoc.c4
-rw-r--r--darwin_priv.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/assoc.c b/assoc.c
index 01063a9..335bec1 100644
--- a/assoc.c
+++ b/assoc.c
@@ -80,14 +80,18 @@ item *assoc_find(const char *key, const size_t nkey, const uint32_t hv) {
}
item *ret = NULL;
+#ifdef ENABLE_DTRACE
int depth = 0;
+#endif
while (it) {
if ((nkey == it->nkey) && (memcmp(key, ITEM_key(it), nkey) == 0)) {
ret = it;
break;
}
it = it->h_next;
+#ifdef ENABLE_DTRACE
++depth;
+#endif
}
MEMCACHED_ASSOC_FIND(key, nkey, depth);
return ret;
diff --git a/darwin_priv.c b/darwin_priv.c
index 411b5fa..b7b18da 100644
--- a/darwin_priv.c
+++ b/darwin_priv.c
@@ -10,7 +10,7 @@
* the sandbox api is marked deprecated, however still used
* by couple of major softwares/libraries like openssh
*/
-void drop_privileges() {
+void drop_privileges(void) {
extern char *__progname;
char *error = NULL;