projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Document/standardize the return types from the fetch methods.
[awesomized/libmemcached]
/
libmemcached
/
stats.cc
diff --git
a/libmemcached/stats.cc
b/libmemcached/stats.cc
index d5d34a84285562b9510dc174e38f9a122c01a309..5a2013e815b9d44a5da236dc0250170ee456527e 100644
(file)
--- a/
libmemcached/stats.cc
+++ b/
libmemcached/stats.cc
@@
-577,14
+577,11
@@
char ** memcached_stat_get_keys(memcached_st *ptr,
return list;
}
return list;
}
-void memcached_stat_free(const memcached_st *
ptr
, memcached_stat_st *memc_stat)
+void memcached_stat_free(const memcached_st *, memcached_stat_st *memc_stat)
{
{
- if (not ptr)
- return;
-
+ WATCHPOINT_ASSERT(memc_stat); // Be polite, but when debugging catch this as an error
if (not memc_stat)
{
if (not memc_stat)
{
- WATCHPOINT_ASSERT(0); /* Be polite, but when debugging catch this as an error */
return;
}
return;
}
@@
-594,7
+591,7
@@
void memcached_stat_free(const memcached_st *ptr, memcached_stat_st *memc_stat)
return;
}
return;
}
- libmemcached_free(
ptr
, memc_stat);
+ libmemcached_free(
NULL
, memc_stat);
}
static memcached_return_t call_stat_fn(memcached_st *ptr,
}
static memcached_return_t call_stat_fn(memcached_st *ptr,