]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/test.h (grub_unit_test_init): Add missing prototype.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 21:04:55 +0000 (22:04 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 21:04:55 +0000 (22:04 +0100)
(grub_unit_test_fini): Likewise.
* tests/lib/unit_test.c (main): Remove extra nested external prototype.

ChangeLog
include/grub/test.h
tests/lib/unit_test.c

index bfed63980eb22abfdf3034d603bb214d015cebb0..37a1bba3dcd3060f5b4bc253e44152105df3092f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * include/grub/test.h (grub_unit_test_init): Add missing prototype.
+       (grub_unit_test_fini): Likewise.
+       * tests/lib/unit_test.c (main): Remove extra nested external prototype.
+
+2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * include/grub/test.h (GRUB_UNIT_TEST)
+
 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/script/execute.c (grub_script_break): Clarify logic.
index 04a8ca13a4f7f142c4548846f2b3e8fcba274eb6..5d1ba75108f1f42efc5195078e072d82c2d76288 100644 (file)
@@ -59,6 +59,9 @@ void grub_test_nonzero (int cond, const char *file,
                    ## __VA_ARGS__,                             \
                    "assert failed: %s", #cond)
 
+void grub_unit_test_init (void);
+void grub_unit_test_fini (void);
+
 /* Macro to define a unit test.  */
 #define GRUB_UNIT_TEST(name, funp)             \
   void grub_unit_test_init (void)              \
index a780d68627110c0d47c98e335dbc4670b7bdd2b9..6adfd9922a223dc20717f2a3f4fdeefd667f6fb2 100644 (file)
@@ -30,9 +30,6 @@ main (int argc __attribute__ ((unused)),
 {
   int status = 0;
 
-  extern void grub_unit_test_init (void);
-  extern void grub_unit_test_fini (void);
-
   grub_test_t test;
 
   grub_unit_test_init ();