about summary refs log tree commit diff
path: root/inet/test-inet6_opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/test-inet6_opt.c')
-rw-r--r--inet/test-inet6_opt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/inet/test-inet6_opt.c b/inet/test-inet6_opt.c
index 3bf319ef0c..a7ebf006c6 100644
--- a/inet/test-inet6_opt.c
+++ b/inet/test-inet6_opt.c
@@ -194,8 +194,8 @@ decode_inet6_opt (void *eb, socklen_t el)
   return ret;
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   void *eb;
   socklen_t el;
@@ -206,3 +206,6 @@ main (void)
     return 1;
   return 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"