Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make the devhandle "integer" field an intptr_t to en...
details: https://anonhg.NetBSD.org/src/rev/94411c20c7f2
branches: trunk
changeset: 359776:94411c20c7f2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Jan 22 11:16:00 2022 +0000
description:
Make the devhandle "integer" field an intptr_t to ensure that all
bits of the union are initialized when that field is used.
diffstat:
sys/sys/device.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1f11f4e2cd45 -r 94411c20c7f2 sys/sys/device.h
--- a/sys/sys/device.h Sat Jan 22 09:59:26 2022 +0000
+++ b/sys/sys/device.h Sat Jan 22 11:16:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.176 2022/01/21 15:55:36 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.177 2022/01/22 11:16:00 thorpej Exp $ */
/*
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -168,7 +168,7 @@
void * pointer;
const void * const_pointer;
uintptr_t uintptr;
- int integer;
+ intptr_t integer;
};
};
typedef struct devhandle devhandle_t;
Home |
Main Index |
Thread Index |
Old Index