Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config match the updated <sys/types.h> definition



details:   https://anonhg.NetBSD.org/src/rev/8c1d37cb85f5
branches:  trunk
changeset: 344261:8c1d37cb85f5
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 18 15:05:49 2016 +0000

description:
match the updated <sys/types.h> definition

diffstat:

 usr.bin/config/defs.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 7ee02948c416 -r 8c1d37cb85f5 usr.bin/config/defs.h
--- a/usr.bin/config/defs.h     Fri Mar 18 14:58:18 2016 +0000
+++ b/usr.bin/config/defs.h     Fri Mar 18 15:05:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: defs.h,v 1.94 2015/11/12 14:38:21 pooka Exp $  */
+/*     $NetBSD: defs.h,v 1.95 2016/03/18 15:05:49 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -89,9 +89,9 @@
 #define major(x)        ((devmajor_t)((((x) & 0x000fff00) >>  8)))
 #define minor(x)        ((devminor_t)((((x) & 0xfff00000) >> 12) | \
                               (((x) & 0x000000ff) >>  0)))
-#define makedev(x,y)    ((dev_t)((((x) <<  8) & 0x000fff00) | \
-                                 (((y) << 12) & 0xfff00000) | \
-                                 (((y) <<  0) & 0x000000ff)))
+#define makedev(x,y)    ((dev_t)((((dev_t)(x) <<  8) & 0x000fff00U) | \
+                                 (((dev_t)(y) << 12) & 0xfff00000U) | \
+                                 (((dev_t)(y) <<  0) & 0x000000ffU)))
 #define __attribute__(x)
 #endif /* MAKE_BOOTSTRAP */
 



Home | Main Index | Thread Index | Old Index