changeset 18803:c56ae984dbc1

static-ized a couple of functions
author nicodvb
date Sat, 24 Jun 2006 09:27:07 +0000
parents b52ed08b17ad
children 2cc4eeaa0627
files libmpdemux/rtp.c libmpdemux/rtp.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/rtp.c	Sat Jun 24 09:10:06 2006 +0000
+++ b/libmpdemux/rtp.c	Sat Jun 24 09:27:07 2006 +0000
@@ -187,7 +187,7 @@
 
 
 // Read next rtp packet using cache 
-int read_rtp_from_server(int fd, char *buffer, int length) {
+static int read_rtp_from_server(int fd, char *buffer, int length) {
 	// Following test is ASSERT (i.e. uneuseful if code is correct)
 	if(buffer==NULL || length<STREAM_BUFFER_SIZE) {
 		mp_msg(MSGT_NETWORK, MSGL_ERR, "RTP buffer invalid; no data return from network\n");
@@ -343,7 +343,7 @@
 }
 
 
-int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData) {
+static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData) {
   static char buf[1600];
   unsigned int intP;
   char* charP = (char*) &intP;
--- a/libmpdemux/rtp.h	Sat Jun 24 09:10:06 2006 +0000
+++ b/libmpdemux/rtp.h	Sat Jun 24 09:27:07 2006 +0000
@@ -32,6 +32,6 @@
 };
 
 
-int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
+static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
 
 #endif