Browse Source

ZOOKEEPER-1339. C client doesn't build with --enable-debug (Eric Liang via michim)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1331246 13f79535-47bb-0310-9956-ffa450edef68
Michi Mutsuzaki 13 years ago
parent
commit
2d22c5be92
2 changed files with 5 additions and 2 deletions
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/c/src/hashtable/hashtable_itr.h

+ 3 - 0
CHANGES.txt

@@ -172,6 +172,9 @@ BUGFIXES:
   ZOOKEEPER-1439. c sdk: core in log_env for lack of checking the output
   ZOOKEEPER-1439. c sdk: core in log_env for lack of checking the output
   argument *pwp* of getpwuid_r (Yubing Yin via michim)
   argument *pwp* of getpwuid_r (Yubing Yin via michim)
 
 
+  ZOOKEEPER-1339. C client doesn't build with --enable-debug
+  (Eric Liang via michim)
+
 IMPROVEMENTS:
 IMPROVEMENTS:
 
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 2 - 2
src/c/src/hashtable/hashtable_itr.h

@@ -32,7 +32,7 @@ hashtable_iterator(struct hashtable *h);
 /* hashtable_iterator_key
 /* hashtable_iterator_key
  * - return the value of the (key,value) pair at the current position */
  * - return the value of the (key,value) pair at the current position */
 
 
-extern inline void *
+static inline void *
 hashtable_iterator_key(struct hashtable_itr *i)
 hashtable_iterator_key(struct hashtable_itr *i)
 {
 {
     return i->e->k;
     return i->e->k;
@@ -41,7 +41,7 @@ hashtable_iterator_key(struct hashtable_itr *i)
 /*****************************************************************************/
 /*****************************************************************************/
 /* value - return the value of the (key,value) pair at the current position */
 /* value - return the value of the (key,value) pair at the current position */
 
 
-extern inline void *
+static inline void *
 hashtable_iterator_value(struct hashtable_itr *i)
 hashtable_iterator_value(struct hashtable_itr *i)
 {
 {
     return i->e->v;
     return i->e->v;