Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/dev/pci
Module Name: src
Committed By: kre
Date: Mon Nov 23 16:34:31 UTC 2026
Modified Files:
src/sys/dev/pci: arcmsr.c
Log Message:
sys/dev/pci/arcmsr.c -- better fix than previous
Instead of converting a uint32_t * into an integer, doing int arith
on it, and then converting it back to a unit32_t * again, just do simple
pointer arithmetic on the unit32_t * (scaling the integer being added
by sizeof(unit32_t)).
This avoids errors: "cast to pointer from integer of different size"
uptrdiff_t (previous fix) would work, but just doing pointer arith
as it is intended to work is so much simpler & cleaner.
nb: compile tested only, I don't have that kind of hardware, nor do
I run 32 bit kernels.
To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/pci/arcmsr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index