projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
5238132
)
Fix compile issue for debug.
author
Brian Aker
<brian@tangent.org>
Thu, 24 Mar 2011 22:21:44 +0000
(15:21 -0700)
committer
Brian Aker
<brian@tangent.org>
Thu, 24 Mar 2011 22:21:44 +0000
(15:21 -0700)
libmemcached/stats.c
patch
|
blob
|
history
diff --git
a/libmemcached/stats.c
b/libmemcached/stats.c
index ebbc63ab9b8ba05be502160ccfb82886e3f5052b..8e24bc795069daafbbe74ba917eb6549d505485f 100644
(file)
--- a/
libmemcached/stats.c
+++ b/
libmemcached/stats.c
@@
-400,21
+400,21
@@
error:
return rc;
}
return rc;
}
-memcached_stat_st *memcached_stat(memcached_st *
ptr
, char *args, memcached_return_t *error)
+memcached_stat_st *memcached_stat(memcached_st *
self
, char *args, memcached_return_t *error)
{
memcached_return_t rc;
memcached_stat_st *stats;
{
memcached_return_t rc;
memcached_stat_st *stats;
- if (!
ptr
)
+ if (!
self
)
{
{
- WATCHPOINT_ASSERT(
memc_ptr
);
+ WATCHPOINT_ASSERT(
self
);
return NULL;
}
WATCHPOINT_ASSERT(error);
return NULL;
}
WATCHPOINT_ASSERT(error);
- unlikely (
ptr
->flags.use_udp)
+ unlikely (
self
->flags.use_udp)
{
if (error)
*error= MEMCACHED_NOT_SUPPORTED;
{
if (error)
*error= MEMCACHED_NOT_SUPPORTED;
@@
-422,7
+422,7
@@
memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_retur
return NULL;
}
return NULL;
}
- stats= libmemcached_calloc(
ptr, memcached_server_count(ptr
), sizeof(memcached_stat_st));
+ stats= libmemcached_calloc(
self, memcached_server_count(self
), sizeof(memcached_stat_st));
if (! stats)
{
if (! stats)
{
@@
-433,7
+433,7
@@
memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_retur
}
rc= MEMCACHED_SUCCESS;
}
rc= MEMCACHED_SUCCESS;
- for (uint32_t x= 0; x < memcached_server_count(
ptr
); x++)
+ for (uint32_t x= 0; x < memcached_server_count(
self
); x++)
{
memcached_return_t temp_return;
memcached_server_write_instance_st instance;
{
memcached_return_t temp_return;
memcached_server_write_instance_st instance;
@@
-441,11
+441,11
@@
memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_retur
stat_instance= stats + x;
stat_instance= stats + x;
- stat_instance->root=
ptr
;
+ stat_instance->root=
self
;
- instance= memcached_server_instance_fetch(
ptr
, x);
+ instance= memcached_server_instance_fetch(
self
, x);
- if (
ptr
->flags.binary_protocol)
+ if (
self
->flags.binary_protocol)
{
temp_return= binary_stats_fetch(stat_instance, args, instance, NULL);
}
{
temp_return= binary_stats_fetch(stat_instance, args, instance, NULL);
}