From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 From: "Kirill A. Shutsemov" To: "Dmitry V. Levin" , Alexey Tourbin Date: Tue, 16 Nov 2010 17:56:37 +0200 Message-Id: <1289923002-14132-4-git-send-email-kirill@shutemov.name> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1289923002-14132-1-git-send-email-kirill@shutemov.name> References: <1289923002-14132-1-git-send-email-kirill@shutemov.name> Cc: "Alexey I. Froloff" , devel@lists.altlinux.org, Alexey Gladkov , "Kirill A. Shutemov" Subject: [devel] [PATCH 3/8] set.c: fixup self-test functions declaration X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 15:57:03 -0000 Archived-At: List-Archive: List-Post: From: Kirill A. Shutemov Signed-off-by: Kirill A. Shutemov --- lib/set.c | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/set.c b/lib/set.c index 1b516c7..03c8149 100644 --- a/lib/set.c +++ b/lib/set.c @@ -192,7 +192,8 @@ int decode_base62(const char *base62, char *bitv) } #ifdef SELF_TEST -void test_base62() +static +void test_base62(void) { const char rnd_bitv[] = { 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, @@ -360,7 +361,8 @@ int decode_golomb(int bitc, const char *bitv, int Mshift, unsigned *v) } #ifdef SELF_TEST -void test_golomb() +static +void test_golomb(void) { const unsigned rnd_v[] = { /* do re mi fa sol la si */ @@ -430,7 +432,8 @@ void decode_delta(int c, unsigned *v) } #ifdef SELF_TEST -void test_delta() +static +void test_delta(void) { unsigned v[] = { 1, 3, 7, 0 @@ -494,7 +497,7 @@ int uniqv(int c, unsigned *v) #ifdef SELF_TEST static -void test_aux() +void test_aux(void) { unsigned v[] = { 2, 3, 1, 2, 7, 6, 5 }; int c = sizeof v / sizeof *v; @@ -625,7 +628,7 @@ int downsample_set(int c, unsigned *v, int bpp) #ifdef SELF_TEST static -void test_set() +void test_set(void) { unsigned rnd_v[] = { 0x020a, 0x07e5, 0x3305, 0x35f5, @@ -842,7 +845,7 @@ const char *set_fini(struct set *set, int bpp) #ifdef SELF_TEST static -void test_api() +void test_api(void) { struct set *set1 = set_new(); set_add(set1, "mama"); @@ -889,7 +892,7 @@ void test_api() #endif #ifdef SELF_TEST -int main() +int main(int argc, char **argv) { test_base62(); test_golomb(); -- 1.7.3.2