[Sumover-dev] [svn commit] r3906 - in common/trunk: . examples examples/sap examples/sdp src

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Fri Oct 27 14:30:40 BST 2006


Author: ucacsva
Date: Fri Oct 27 14:29:34 2006
New Revision: 3906

Modified:
   common/trunk/configure.in
   common/trunk/examples/Makefile.in
   common/trunk/examples/rtp/Makefile.in
   common/trunk/examples/sap/Makefile.in
   common/trunk/examples/sdp/Makefile.in
   common/trunk/examples/sdp/sdpdemo.c
   common/trunk/src/rtp.c

Log:
Fixed configs and added rtp, sap, sdp examples.\nFixed warning.

Modified: common/trunk/configure.in
==============================================================================
--- common/trunk/configure.in	(original)
+++ common/trunk/configure.in	Fri Oct 27 14:29:34 2006
@@ -384,4 +384,4 @@
 ###############################################################################
 # Done, create the output files....
 AC_CONFIG_HEADER(src/uclconf.h:src/config.h.in)
-AC_OUTPUT(Makefile doc/Makefile examples/Makefile examples/rtp/Makefile src/Makefile tests/Makefile)
+AC_OUTPUT(Makefile doc/Makefile examples/Makefile examples/rtp/Makefile examples/sdp/Makefile examples/sap/Makefile src/Makefile tests/Makefile)

Modified: common/trunk/examples/Makefile.in
==============================================================================
--- common/trunk/examples/Makefile.in	(original)
+++ common/trunk/examples/Makefile.in	Fri Oct 27 14:29:34 2006
@@ -3,7 +3,7 @@
 # This probably requires GNU make.
 #
 
-SUBDIRS=rtp
+SUBDIRS=rtp sdp sap
 
 all: all-recursive
 

Modified: common/trunk/examples/rtp/Makefile.in
==============================================================================
--- common/trunk/examples/rtp/Makefile.in	(original)
+++ common/trunk/examples/rtp/Makefile.in	Fri Oct 27 14:29:34 2006
@@ -30,7 +30,7 @@
 	cd $(CSRC) && $(MAKE)
 
 clean:
-	-rm -f $(OBJS) $(TARGET)
+	rm -f $(OBJS) $(TARGET)
 
 distclean: clean
-	-rm -f Makefile
\ No newline at end of file
+	rm -f Makefile

Modified: common/trunk/examples/sap/Makefile.in
==============================================================================
--- common/trunk/examples/sap/Makefile.in	(original)
+++ common/trunk/examples/sap/Makefile.in	Fri Oct 27 14:29:34 2006
@@ -30,7 +30,7 @@
 	cd $(CSRC) && $(MAKE)
 
 clean:
-	-rm -f $(OBJS) $(TARGET)
+	rm -f $(OBJS) $(TARGET)
 
 distclean: clean
-	-rm -f Makefile
\ No newline at end of file
+	rm -f Makefile

Modified: common/trunk/examples/sdp/Makefile.in
==============================================================================
--- common/trunk/examples/sdp/Makefile.in	(original)
+++ common/trunk/examples/sdp/Makefile.in	Fri Oct 27 14:29:34 2006
@@ -21,7 +21,7 @@
 all: $(TARGET)
 
 sdpdemo: $(OBJS) $(CSRC)/lib$(LNAME).a
-	 $(CC) $(CFLAGS) -o $@ $(@).o $(LIBS)
+	 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
 
 .c.o:
 	$(CC) $(CFLAGS) $(INC) -c $<
@@ -30,7 +30,7 @@
 	cd $(CSRC) && $(MAKE)
 
 clean:
-	-rm -f $(OBJS) $(TARGET)
+	rm -f $(OBJS) $(TARGET)
 
 distclean: clean
-	-rm -f Makefile
\ No newline at end of file
+	rm -f Makefile

Modified: common/trunk/examples/sdp/sdpdemo.c
==============================================================================
--- common/trunk/examples/sdp/sdpdemo.c	(original)
+++ common/trunk/examples/sdp/sdpdemo.c	Fri Oct 27 14:29:34 2006
@@ -29,7 +29,7 @@
 
   print_sap_packet(packet); 
 
-  session = sdp_parse(packet->payload);
+  session = sdp_parse((char*)packet->payload);
 
   printf("Original Packet: \n++++\n%s++++\n", session->original);
 
@@ -37,7 +37,7 @@
 
   new_payload = sdp_make(session);
 
-  if(strcmp(packet->payload, new_payload) != 0)
+  if(strcmp((char *)packet->payload, new_payload) != 0)
     printf("The two sdp payloads are different!\n");
 
   xfree(new_payload);

Modified: common/trunk/src/rtp.c
==============================================================================
--- common/trunk/src/rtp.c	(original)
+++ common/trunk/src/rtp.c	Fri Oct 27 14:29:34 2006
@@ -1326,6 +1326,8 @@
 	/* This function checks the header info to make sure that the packet */
 	/* is valid. We return TRUE if the packet is valid, FALSE otherwise. */
 	/* See Appendix A.1 of the RTP specification.                        */
+	
+	UNUSED(session);
 
 	/* We only accept RTPv2 packets... */
         if (packet->fields.v != 2) {



More information about the Sumover-dev mailing list