aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_ptr_slow.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-03-22 13:04:06 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2019-03-22 13:04:06 +0200
commit7b30f8dc8c93ac215a1e7330fee1baa5f1437a98 (patch)
treef26e430b6eef136531156d694506f3a070b82f8c /src/test/test_ptr_slow.c
parent13b28063f9f2a3d2a587eabac358452a42277052 (diff)
downloadtor-7b30f8dc8c93ac215a1e7330fee1baa5f1437a98.tar.gz
tor-7b30f8dc8c93ac215a1e7330fee1baa5f1437a98.zip
Write missing function comments
Diffstat (limited to 'src/test/test_ptr_slow.c')
-rw-r--r--src/test/test_ptr_slow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c
index 37560d4359..2d4fc9d4dd 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)
{