changeset 716:3f3e69baaaf8 libavutil

Mark non-exported functions in test and example programs as static.
author diego
date Tue, 31 Mar 2009 09:32:59 +0000
parents 6a92aeca1990
children 01f68e5fb9af
files base64.c des.c tree.c
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/base64.c	Sun Mar 29 14:42:52 2009 +0000
+++ b/base64.c	Tue Mar 31 09:32:59 2009 +0000
@@ -106,7 +106,8 @@
 #define MAX_DATA_SIZE    1024
 #define MAX_ENCODED_SIZE 2048
 
-int test_encode_decode(const uint8_t *data, unsigned int data_size, const char *encoded_ref)
+static int test_encode_decode(const uint8_t *data, unsigned int data_size,
+                              const char *encoded_ref)
 {
     char  encoded[MAX_ENCODED_SIZE];
     uint8_t data2[MAX_DATA_SIZE];
--- a/des.c	Sun Mar 29 14:42:52 2009 +0000
+++ b/des.c	Tue Mar 31 09:32:59 2009 +0000
@@ -349,7 +349,7 @@
     0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23
 };
 
-int run_test(int cbc, int decrypt) {
+static int run_test(int cbc, int decrypt) {
     AVDES d;
     int delay = cbc && !decrypt ? 2 : 1;
     uint64_t res;
--- a/tree.c	Sun Mar 29 14:42:52 2009 +0000
+++ b/tree.c	Tue Mar 31 09:32:59 2009 +0000
@@ -174,7 +174,7 @@
         av_log(NULL, AV_LOG_ERROR, "NULL\n");
 }
 
-int cmp(const void *a, const void *b){
+static int cmp(const void *a, const void *b){
     return a-b;
 }