Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Fix typo in local macro name, pointed out...



details:   https://anonhg.NetBSD.org/src/rev/0b45f7e651ce
branches:  trunk
changeset: 319314:0b45f7e651ce
user:      martin <martin%NetBSD.org@localhost>
date:      Fri May 25 16:30:03 2018 +0000

description:
Fix typo in local macro name, pointed out by uwe

diffstat:

 tests/lib/libc/sys/t_syscall.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 91d4ac27c6e8 -r 0b45f7e651ce tests/lib/libc/sys/t_syscall.c
--- a/tests/lib/libc/sys/t_syscall.c    Fri May 25 16:01:31 2018 +0000
+++ b/tests/lib/libc/sys/t_syscall.c    Fri May 25 16:30:03 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_syscall.c,v 1.1 2018/05/25 15:42:30 martin Exp $     */
+/*     $NetBSD: t_syscall.c,v 1.2 2018/05/25 16:30:03 martin Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_syscall.c,v 1.1 2018/05/25 15:42:30 martin Exp $");
+__RCSID("$NetBSD: t_syscall.c,v 1.2 2018/05/25 16:30:03 martin Exp $");
 
 
 #include <atf-c.h>
@@ -44,9 +44,9 @@
 #include <sys/syscall.h>
 
 #if !defined(_LP64) && BYTE_ORDER == _BIG_ENDIAN
-#define __SYSCALL_TO_UINPTRT(V)        ((uintptr_t)((V)>>32))
+#define __SYSCALL_TO_UINTPTR_T(V)      ((uintptr_t)((V)>>32))
 #else
-#define __SYSCALL_TO_UINPTRT(V)        ((uintptr_t)(V))
+#define __SYSCALL_TO_UINTPTR_T(V)      ((uintptr_t)(V))
 #endif
 
 static const char secrect_data[1024] = {
@@ -98,7 +98,7 @@
 
        write(fd, secrect_data, sizeof(secrect_data));
 
-       p = (const char *)__SYSCALL_TO_UINPTRT(__syscall(SYS_mmap,
+       p = (const char *)__SYSCALL_TO_UINTPTR_T(__syscall(SYS_mmap,
                0, sizeof(secrect_data), PROT_READ, MAP_PRIVATE, fd, 0, 0, 0));
        ATF_REQUIRE(p != NULL);
 



Home | Main Index | Thread Index | Old Index