Module Name: src Committed By: thorpej Date: Sat Jan 22 11:16:00 UTC 2022
Modified Files: src/sys/sys: device.h Log Message: Make the devhandle "integer" field an intptr_t to ensure that all bits of the union are initialized when that field is used. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 src/sys/sys/device.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/device.h diff -u src/sys/sys/device.h:1.176 src/sys/sys/device.h:1.177 --- src/sys/sys/device.h:1.176 Fri Jan 21 15:55:36 2022 +++ src/sys/sys/device.h Sat Jan 22 11:16:00 2022 @@ -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 @@ struct devhandle { void * pointer; const void * const_pointer; uintptr_t uintptr; - int integer; + intptr_t integer; }; }; typedef struct devhandle devhandle_t;