shithub: opusfile

Download patch

ref: 4668395812687f0a197a7a8fd50afbae67f73421
parent: 76842c59f55b55a5951eab5ca8e82af6900aa94b
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Tue Aug 20 17:19:52 EDT 2013

Mark some functions static.

These were only non-static because of oversight.

--- a/src/http.c
+++ b/src/http.c
@@ -1527,7 +1527,7 @@
 
 /*Establish a CONNECT tunnel and pipeline the start of the TLS handshake for
    proxying https URL requests.*/
-int op_http_conn_establish_tunnel(OpusHTTPStream *_stream,
+static int op_http_conn_establish_tunnel(OpusHTTPStream *_stream,
  OpusHTTPConn *_conn,op_sock _fd,SSL *_ssl_conn,BIO *_ssl_bio){
   BIO  *retry_bio;
   char *status_code;
@@ -1796,7 +1796,7 @@
 }
 
 /*Perform the TLS handshake on a new connection.*/
-int op_http_conn_start_tls(OpusHTTPStream *_stream,OpusHTTPConn *_conn,
+static int op_http_conn_start_tls(OpusHTTPStream *_stream,OpusHTTPConn *_conn,
  op_sock _fd,SSL *_ssl_conn){
   SSL_SESSION *ssl_session;
   BIO         *ssl_bio;
--- a/src/info.c
+++ b/src/info.c
@@ -101,7 +101,7 @@
   Unlike the public API, this function requires _tags to already be
    initialized, modifies its contents before success is guaranteed, and assumes
    the caller will clear it on error.*/
-int opus_tags_parse_impl(OpusTags *_tags,
+static int opus_tags_parse_impl(OpusTags *_tags,
  const unsigned char *_data,size_t _len){
   opus_uint32 count;
   size_t      size;
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -1003,7 +1003,7 @@
 
 /*Rescale the number _x from the range [0,_from] to [0,_to].
   _from and _to must be positive.*/
-opus_int64 op_rescale64(opus_int64 _x,opus_int64 _from,opus_int64 _to){
+static opus_int64 op_rescale64(opus_int64 _x,opus_int64 _from,opus_int64 _to){
   opus_int64 frac;
   opus_int64 ret;
   int        i;