Page MenuHomeFreeBSD

D49971.id154149.diff
No OneTemporary

D49971.id154149.diff

diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -160,7 +160,7 @@
caddr_t __read_mostly unmapped_buf;
#ifdef INVARIANTS
-caddr_t poisoned_buf = (void *)-1;
+void *poisoned_buf = (void *)-1;
#endif
/* Used below and for softdep flushing threads in ufs/ffs/ffs_softdep.c */
diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h
--- a/sys/sys/kassert.h
+++ b/sys/sys/kassert.h
@@ -51,11 +51,11 @@
*/
#ifdef INVARIANTS
-extern caddr_t poisoned_buf;
+extern void *poisoned_buf;
#define DEBUG_POISON_POINTER_VALUE poisoned_buf
#define DEBUG_POISON_POINTER(x) ({ \
- x = (void *)(DEBUG_POISON_POINTER_VALUE); \
+ x = (DEBUG_POISON_POINTER_VALUE); \
})
#else

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 24, 4:35 PM (18 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17762034
Default Alt Text
D49971.id154149.diff (733 B)

Event Timeline