Module Name: src
Committed By: kamil
Date: Mon Feb 10 09:10:58 UTC 2020
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
Avoid unportable bit shift semantics
hijack.c:451:52, left shift of 1 by 31 places cannot be represented in type 'int
To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 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.128 src/lib/librumphijack/hijack.c:1.129
--- src/lib/librumphijack/hijack.c:1.128 Wed Sep 25 20:19:59 2019
+++ src/lib/librumphijack/hijack.c Mon Feb 10 09:10:58 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.128 2019/09/25 20:19:59 christos Exp $ */
+/* $NetBSD: hijack.c,v 1.129 2020/02/10 09:10:58 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.128 2019/09/25 20:19:59 christos Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.129 2020/02/10 09:10:58 kamil Exp $");
#endif
#include <sys/param.h>
@@ -440,7 +440,7 @@ static int hijack_fdoff = FD_SETSIZE/2;
/* note: you cannot change this without editing the env-passing code */
#define DUP2HIGH 2
static uint32_t dup2vec[DUP2HIGH+1];
-#define DUP2BIT (1<<31)
+#define DUP2BIT (1U<<31)
#define DUP2ALIAS (1<<30)
#define DUP2FDMASK ((1<<30)-1)