]> granicus.if.org Git - strace/blobdiff - tests/splice.c
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / splice.c
index 5a899109c8bff6c053f601d235de1e9e85221e67..cf07c80de9337e303f1109c38a3bc73e51f635f7 100644 (file)
@@ -2,6 +2,7 @@
  * This file is part of splice strace test.
  *
  * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2016-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 int
 main(void)
 {
-       const long int fd_in = (long int) 0xdeadbeefffffffff;
-       const long int fd_out = (long int) 0xdeadbeeffffffffe;
-       long long int *const off_in = tail_alloc(sizeof(*off_in));
-       long long int *const off_out = tail_alloc(sizeof(*off_out));
-       *off_in = 0xdeadbef1facefed1;
-       *off_out = 0xdeadbef2facefed2;
+       const long int fd_in = (long int) 0xdeadbeefffffffffULL;
+       const long int fd_out = (long int) 0xdeadbeeffffffffeULL;
+       TAIL_ALLOC_OBJECT_CONST_PTR(long long int, off_in);
+       TAIL_ALLOC_OBJECT_CONST_PTR(long long int, off_out);
+       *off_in = 0xdeadbef1facefed1ULL;
+       *off_out = 0xdeadbef2facefed2ULL;
        const size_t len = (size_t) 0xdeadbef3facefed3ULL;
        const unsigned int flags = 15;