diff options
author | Diane Bruce <db@FreeBSD.org> | 2013-12-28 03:34:07 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2013-12-28 03:34:07 +0000 |
commit | 67793138f371d8a1be70fa20c74c5f394ce26350 (patch) | |
tree | 35e50e9b3f75dc93c0b6b61c27f46f99306bed66 /comms/echolinux/files/patch-echolinux_rtpacket.c | |
parent | - Update from 0.60 to 0.70 (diff) |
- convert to stage
- make compile with clang
- add LICENSE
Diffstat (limited to 'comms/echolinux/files/patch-echolinux_rtpacket.c')
-rw-r--r-- | comms/echolinux/files/patch-echolinux_rtpacket.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/comms/echolinux/files/patch-echolinux_rtpacket.c b/comms/echolinux/files/patch-echolinux_rtpacket.c new file mode 100644 index 000000000000..1ffd38ee227a --- /dev/null +++ b/comms/echolinux/files/patch-echolinux_rtpacket.c @@ -0,0 +1,50 @@ +--- echolinux/rtpacket.c.orig 2002-12-21 22:10:48.000000000 -0500 ++++ echolinux/rtpacket.c 2013-12-27 22:10:06.275393036 -0500 +@@ -1,4 +1,8 @@ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++#include <strings.h> ++#include <arpa/inet.h> + #include "rtp.h" + #include "rtpacket.h" + +@@ -11,6 +15,16 @@ + + /*************** RTP_MAKE_SDES *************/ + ++static unsigned char *ap; ++static void addSDES(unsigned char item, char *text) ++{ ++ int l; ++ *ap++ = item; ++ *ap++ = l = strlen(text); ++ bcopy(text, ap, l); ++ ap += l; ++} ++ + int rtp_make_sdes(pkt, ssrc_i, strict) + char **pkt; + unsigned long ssrc_i; +@@ -19,21 +33,12 @@ + unsigned char zp[1500]; + unsigned char *p = zp; + rtcp_t *rp; +- unsigned char *ap; + char *sp, *ep; + char line[180]; + int l, hl, i; + struct passwd *pw; + char s[256], ev[1024]; + +- void addSDES(unsigned char item, char *text){ +- *ap++ = item; +- *ap++ = l = strlen(text); +- bcopy(text, ap, l); +- ap += l; +- } +- +- + hl = 0; + if (strict) { + *p++ = RTP_VERSION << 6; |