From 504ffed19f990f91237479be93480d9b597561e2 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 31 Mar 2009 09:32:59 +0000 Subject: Mark non-exported functions in test and example programs as static. Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/base64.c | 3 ++- libavutil/des.c | 2 +- libavutil/tree.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libavutil') diff --git a/libavutil/base64.c b/libavutil/base64.c index 96bc0b349a..60e35a81b3 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -106,7 +106,8 @@ char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size) #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]; diff --git a/libavutil/des.c b/libavutil/des.c index 43f6c4ae2e..6ba7702252 100644 --- a/libavutil/des.c +++ b/libavutil/des.c @@ -349,7 +349,7 @@ static const uint8_t cbc_key[] = { 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; diff --git a/libavutil/tree.c b/libavutil/tree.c index 62437ffd5b..22679692b4 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -174,7 +174,7 @@ static void print(AVTreeNode *t, int depth){ 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; } -- cgit v1.2.3