Source-Changes-HG archive

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

[src/trunk]: src/lib/librumphijack Change types of DUP2ALIAS and DUP2FDMASK b...



details:   https://anonhg.NetBSD.org/src/rev/9ef7724da756
branches:  trunk
changeset: 848819:9ef7724da756
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Feb 10 23:21:42 2020 +0000

description:
Change types of DUP2ALIAS and DUP2FDMASK bit masks to unsigned

This is for consistency with the DUP2BIT change.

diffstat:

 lib/librumphijack/hijack.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b2a8e95a4894 -r 9ef7724da756 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Mon Feb 10 22:38:10 2020 +0000
+++ b/lib/librumphijack/hijack.c        Mon Feb 10 23:21:42 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.129 2020/02/10 09:10:58 kamil Exp $      */
+/*      $NetBSD: hijack.c,v 1.130 2020/02/10 23:21:42 kamil Exp $      */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -34,7 +34,7 @@
 #include <rump/rumpuser_port.h>
 
 #if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.129 2020/02/10 09:10:58 kamil Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.130 2020/02/10 23:21:42 kamil Exp $");
 #endif
 
 #include <sys/param.h>
@@ -441,8 +441,8 @@
 #define DUP2HIGH 2
 static uint32_t dup2vec[DUP2HIGH+1];
 #define DUP2BIT (1U<<31)
-#define DUP2ALIAS (1<<30)
-#define DUP2FDMASK ((1<<30)-1)
+#define DUP2ALIAS (1U<<30)
+#define DUP2FDMASK ((1U<<30)-1)
 
 static bool
 isdup2d(int fd)



Home | Main Index | Thread Index | Old Index