[sr-dev] git:master: core: define shm_str_dup() only ifdef SHM_MEM

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Mar 3 19:31:47 CET 2010


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 <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
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




More information about the sr-dev mailing list