summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-03-31 09:32:59 +0000
committerDiego Biurrun <diego@biurrun.de>2009-03-31 09:32:59 +0000
commit504ffed19f990f91237479be93480d9b597561e2 (patch)
tree0112de10541e64bca39496011f62f0284ee87470 /libavutil
parentcafe71c62d87955172dd6d8fcb277988f00e92e2 (diff)
Mark non-exported functions in test and example programs as static.
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/base64.c3
-rw-r--r--libavutil/des.c2
-rw-r--r--libavutil/tree.c2
3 files changed, 4 insertions, 3 deletions
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;
}