shithub: opus-tools

Download patch

ref: 8a75eb978c410897fa934af785238422aae8284f
parent: 14f38dbc9c443f4b806cc21d49ba4d13b94118b3
author: Ralph Giles <giles@mozilla.com>
date: Wed Aug 22 13:21:03 EDT 2012

Fix prototype warnings.

Need to declare no arguments as func(void), not func().

--- a/src/opusrtp.c
+++ b/src/opusrtp.c
@@ -36,7 +36,7 @@
 }
 
 /* manufacture a generic OpusHead packet */
-ogg_packet *op_opushead()
+ogg_packet *op_opushead(void)
 {
   int size = 19;
   unsigned char *data = malloc(size);
@@ -71,7 +71,7 @@
 
 
 /* manufacture a generic OpusTags packet */
-ogg_packet *op_opustags()
+ogg_packet *op_opustags(void)
 {
   char *identifier = "OpusTags";
   char *vendor = "opus rtp packet dump";