aboutsummaryrefslogtreecommitdiff
blob: 4aba103d86e9547db551add4ec881304b855655b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/src/test/test-hexdecoct.c
+++ b/src/test/test-hexdecoct.c
@@ -22,6 +22,16 @@
 #include "macro.h"
 #include "string-util.h"
 
+#define strndupa(s, n) \
+	({ \
+	  const char *__in = (s);			\
+	  size_t __len = strnlen(__in, (n));		\
+	  char *__out = (char *)alloca(__len + 1);	\
+	  __out[__len] = '\0';				\
+	  (char *)memcpy(__out, __in, __len);		\
+	})
+
+
 static void test_hexchar(void) {
         assert_se(hexchar(0xa) == 'a');
         assert_se(hexchar(0x0) == '0');
--- a/src/test/test-sizeof.c
+++ b/src/test/test-sizeof.c
@@ -48,8 +48,6 @@
         info(unsigned);
         info(long unsigned);
         info(long long unsigned);
-        info(__syscall_ulong_t);
-        info(__syscall_slong_t);
 
         info(float);
         info(double);
@@ -59,7 +57,6 @@
         info(ssize_t);
         info(time_t);
         info(usec_t);
-        info(__time_t);
 
         info(enum Enum);
         info(enum BigEnum);