projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Portability patches from Kevin Dalley for Freebsd 4.0.
[m6w6/libmemcached]
/
lib
/
memcached.c
diff --git
a/lib/memcached.c
b/lib/memcached.c
index 30099c39ff7a2f643f2edd9caaaddb0ee5b0d979..24c3b8bc4048198c60e10e581f371461490a3563 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-5,7
+5,7
@@
memcached_st *memcached_create(memcached_st *ptr)
{
memcached_st *memcached_create(memcached_st *ptr)
{
- memcached_
string_st *string
_ptr;
+ memcached_
result_st *result
_ptr;
if (!ptr)
{
ptr= (memcached_st *)malloc(sizeof(memcached_st));
if (!ptr)
{
ptr= (memcached_st *)malloc(sizeof(memcached_st));
@@
-20,8
+20,8
@@
memcached_st *memcached_create(memcached_st *ptr)
{
memset(ptr, 0, sizeof(memcached_st));
}
{
memset(ptr, 0, sizeof(memcached_st));
}
-
string_ptr= memcached_string_create(ptr, &ptr->result_buffer, 0
);
- WATCHPOINT_ASSERT(
string
_ptr);
+
result_ptr= memcached_result_create(ptr, &ptr->result
);
+ WATCHPOINT_ASSERT(
result
_ptr);
ptr->poll_timeout= MEMCACHED_DEFAULT_TIMEOUT;
ptr->distribution= MEMCACHED_DISTRIBUTION_MODULA;
ptr->poll_timeout= MEMCACHED_DEFAULT_TIMEOUT;
ptr->distribution= MEMCACHED_DISTRIBUTION_MODULA;
@@
-33,7
+33,7
@@
void memcached_free(memcached_st *ptr)
/* If we have anything open, lets close it now */
memcached_quit(ptr);
memcached_server_list_free(ptr->hosts);
/* If we have anything open, lets close it now */
memcached_quit(ptr);
memcached_server_list_free(ptr->hosts);
- memcached_
string_free(&ptr->result_buffer
);
+ memcached_
result_free(&ptr->result
);
if (ptr->is_allocated == MEMCACHED_ALLOCATED)
free(ptr);
if (ptr->is_allocated == MEMCACHED_ALLOCATED)
free(ptr);