aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_common.h2
-rw-r--r--src/util/test_scheduler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 033a68894..34f419a49 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -1210,7 +1210,7 @@ GNUNET_is_zero_ (const void *a,
1210 * @param type name of the struct or union, i.e. pass 'struct Foo'. 1210 * @param type name of the struct or union, i.e. pass 'struct Foo'.
1211 */ 1211 */
1212#define GNUNET_new_array(n, type) ({ \ 1212#define GNUNET_new_array(n, type) ({ \
1213 GNUNET_assert (SIZE_MAX / sizeof (type) >= n); \ 1213 GNUNET_assert (SIZE_MAX / sizeof (type) >= n); \
1214 (type *) GNUNET_malloc ((n) * sizeof(type)); \ 1214 (type *) GNUNET_malloc ((n) * sizeof(type)); \
1215 }) 1215 })
1216 1216
diff --git a/src/util/test_scheduler.c b/src/util/test_scheduler.c
index 02a70a560..471ca64e5 100644
--- a/src/util/test_scheduler.c
+++ b/src/util/test_scheduler.c
@@ -234,7 +234,7 @@ taskSig (void *cls)
234 * checks that "ok" is correct at the end. 234 * checks that "ok" is correct at the end.
235 */ 235 */
236static int 236static int
237checkSignal () 237checkSignal (void)
238{ 238{
239 int ok; 239 int ok;
240 240