Source-Changes archive

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

CVS commit: src/tests/kernel/kqueue/write



Module Name:    src
Committed By:   kre
Date:           Sun Oct  4 01:25:49 UTC 2026

Modified Files:
        src/tests/kernel/kqueue/write: t_pipe.c

Log Message:
Fix wacky printf usage - hopefully unbreak 32 bit builds

Rather than converting an int type to a (void *) and then
printing using %p (one presumes to obtain hex), use the PRIx64
(the value is int64_t) macro (just like previous output lines do)
instead.   (Use the '#' printf flag as well, to get the 0x when
needed, and just 0 if the value is 0).

As it was, 32 bit builds would complain about converting between
a pointer and an integer of a different size - converting it to
intptr_t before void * would have fixed that, but would lose the
top 32 bits of the value on 32 bit systems.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/kqueue/write/t_pipe.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