Module: sip-router
Branch: master
Commit: f2e37b7e4f3d6041bcd8dbe1846ab0c24b9e26df
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f2e37b7e4f3d6041bcd8dbe1846ab0c24b9e26df

Author: Andrei Pelinescu-Onciul <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
Date:   Wed Mar  3 19:29:04 2010 +0100

core: define shm_str_dup() only ifdef SHM_MEM

---

 ut.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ut.h b/ut.h
index 3d98e11..2328824 100644
--- a/ut.h
+++ b/ut.h
@@ -642,6 +642,9 @@ static inline int str2sint(str* _s, int* _r)
        return 0;
 }
 
+
+
+#ifdef SHM_MEM
 /**
  * \brief Make a copy of a str structure using shm_malloc
  * \param dst destination
@@ -660,6 +663,9 @@ static inline int shm_str_dup(str* dst, const str* src)
        dst->len = src->len;
        return 0;
 }
+#endif /* SHM_MEM */
+
+
 
 /**
  * \brief Make a copy of a str structure using pkg_malloc


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to