projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Added basic print output.
[m6w6/libmemcached]
/
lib
/
memcached.c
diff --git
a/lib/memcached.c
b/lib/memcached.c
index 3cbac0b274fb54c6b803eef10ab3043527e39643..6cf81c734664d65da4dfa7dd0cd4911658cd39f3 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-1,7
+1,7
@@
/*
Memcached library
*/
/*
Memcached library
*/
-#include
<memcached.h>
+#include
"common.h"
memcached_st *memcached_init(memcached_st *ptr)
{
memcached_st *memcached_init(memcached_st *ptr)
{
@@
-26,7
+26,6
@@
memcached_st *memcached_init(memcached_st *ptr)
void memcached_deinit(memcached_st *ptr)
{
unsigned int x;
void memcached_deinit(memcached_st *ptr)
{
unsigned int x;
- memcached_host_st *host_ptr;
if (ptr->hosts)
{
if (ptr->hosts)
{
@@
-35,8
+34,7
@@
void memcached_deinit(memcached_st *ptr)
if (ptr->hosts[x].fd > 0)
close(ptr->hosts[x].fd);
if (ptr->hosts[x].fd > 0)
close(ptr->hosts[x].fd);
- if (ptr->hosts[x].hostname)
- free(ptr->hosts[x].hostname);
+ free(ptr->hosts[x].hostname);
}
free(ptr->hosts);
}
free(ptr->hosts);