Source-Changes-HG archive

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

[src/thorpej-cfargs]: src/sys/sys Use a value for CFARG_EOL that is not likel...



details:   https://anonhg.NetBSD.org/src/rev/eafa7ea2bcb0
branches:  thorpej-cfargs
changeset: 981736:eafa7ea2bcb0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 24 18:07:07 2021 +0000

description:
Use a value for CFARG_EOL that is not likely to be encountered randomly in
nature.  Suggested by dholland.

diffstat:

 sys/sys/device.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1e46ef1ab1d1 -r eafa7ea2bcb0 sys/sys/device.h
--- a/sys/sys/device.h  Fri Apr 23 15:05:27 2021 +0000
+++ b/sys/sys/device.h  Sat Apr 24 18:07:07 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.167.2.9 2021/04/04 19:23:53 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.167.2.10 2021/04/24 18:07:07 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -535,7 +535,8 @@
        CFARG_LOCATORS          = 3,    /* locators array */
        CFARG_DEVHANDLE         = 4,    /* devhandle_t (by value) */
 
-       CFARG_EOL               = 0xffffffff
+       /* ...a value not likely to occur randomly in the wild. */
+       CFARG_EOL               = 0xeeeeeeee
 } cfarg_t;
 
 #ifdef _KERNEL



Home | Main Index | Thread Index | Old Index