Module Name:    src
Committed By:   kamil
Date:           Mon Feb 10 23:21:42 UTC 2020

Modified Files:
        src/lib/librumphijack: hijack.c

Log Message:
Change types of DUP2ALIAS and DUP2FDMASK bit masks to unsigned

This is for consistency with the DUP2BIT change.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/lib/librumphijack/hijack.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.129 src/lib/librumphijack/hijack.c:1.130
--- src/lib/librumphijack/hijack.c:1.129	Mon Feb 10 09:10:58 2020
+++ src/lib/librumphijack/hijack.c	Mon Feb 10 23:21:42 2020
@@ -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 @@ static int hijack_fdoff = FD_SETSIZE/2;
 #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)

Reply via email to