[tor-commits] [tor/master] Write missing function comments

teor at torproject.org teor at torproject.org
Tue Mar 26 09:31:42 UTC 2019


commit 7b30f8dc8c93ac215a1e7330fee1baa5f1437a98
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Fri Mar 22 13:04:06 2019 +0200

    Write missing function comments
---
 src/test/test_ptr_slow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c
index 37560d435..2d4fc9d4d 100644
--- a/src/test/test_ptr_slow.c
+++ b/src/test/test_ptr_slow.c
@@ -36,6 +36,7 @@ assert_int_voidptr_roundtrip(int a)
   return;
 }
 
+/** Test for possibility of casting `int` to `void *` and back. */
 static void
 test_int_voidstar_interop(void *arg)
 {
@@ -61,6 +62,7 @@ test_int_voidstar_interop(void *arg)
   }
 }
 
+/** Assert that <b>a</b> can be cast to void * and back. */
 static void
 assert_uint_voidptr_roundtrip(unsigned int a)
 {
@@ -76,6 +78,7 @@ assert_uint_voidptr_roundtrip(unsigned int a)
   return;
 }
 
+/** Test for possibility of casting `int` to `void *` and back. */
 static void
 test_uint_voidstar_interop(void *arg)
 {





More information about the tor-commits mailing list