Module: sip-router
Branch: master
Commit: 7126d8aa7a5fa5fd0a5cafdf17c359dab01df5ef
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7126d8a…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Wed Apr 9 20:50:13 2014 +0300
modules/rtpengine: rtpengine does not use ser_memmem
---
modules/rtpengine/rtpengine_funcs.c | 32 --------------------------------
modules/rtpengine/rtpengine_funcs.h | 1 -
2 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/modules/rtpengine/rtpengine_funcs.c b/modules/rtpengine/rtpengine_funcs.c
index c6a2c14..bb3d164 100644
--- a/modules/rtpengine/rtpengine_funcs.c
+++ b/modules/rtpengine/rtpengine_funcs.c
@@ -276,38 +276,6 @@ done:
}
/*
- * ser_memmem() returns the location of the first occurrence of data
- * pattern b2 of size len2 in memory block b1 of size len1 or
- * NULL if none is found. Obtained from NetBSD.
- */
-void *
-ser_memmem(const void *b1, const void *b2, size_t len1, size_t len2)
-{
- /* Initialize search pointer */
- char *sp = (char *) b1;
-
- /* Initialize pattern pointer */
- char *pp = (char *) b2;
-
- /* Initialize end of search address space pointer */
- char *eos = sp + len1 - len2;
-
- /* Sanity check */
- if(!(b1 && b2 && len1 && len2))
- return NULL;
-
- while (sp <= eos) {
- if (*sp == *pp)
- if (memcmp(sp, pp, len2) == 0)
- return sp;
-
- sp++;
- }
-
- return NULL;
-}
-
-/*
* Some helper functions taken verbatim from tm module.
*/
diff --git a/modules/rtpengine/rtpengine_funcs.h b/modules/rtpengine/rtpengine_funcs.h
index fc223b3..4ad3210 100644
--- a/modules/rtpengine/rtpengine_funcs.h
+++ b/modules/rtpengine/rtpengine_funcs.h
@@ -30,7 +30,6 @@
int extract_body(struct sip_msg * , str *);
int check_content_type(struct sip_msg * );
-void *ser_memmem(const void *, const void *, size_t, size_t);
int get_callid(struct sip_msg *, str *);
int get_to_tag(struct sip_msg *, str *);
int get_from_tag(struct sip_msg *, str *);