Commit Graph

137279 Commits

Author SHA1 Message Date
uwe b4a8a52b69 Rename local var to avoid shadowing. 2005-06-02 21:26:00 +00:00
uwe cc2fdca25f Constify. 2005-06-02 20:29:09 +00:00
uwe e1638036b3 Drop redundant (and wrong) cast. 2005-06-02 20:27:30 +00:00
martin a2a1dc8e7c Add extern declaration for "bufpages". 2005-06-02 20:14:55 +00:00
uwe a0690c7849 Catch up with constification. 2005-06-02 20:12:35 +00:00
uwe fd4f28440c Catch up with constification. 2005-06-02 19:33:04 +00:00
uwe 7f3b59be3f Drop parameter names from prototypes to avoid shadowing warnings. 2005-06-02 19:32:03 +00:00
he 6848502579 Fix const fallout. 2005-06-02 18:06:10 +00:00
he 172a623876 Adapt to shadowing and qualifier-cast warnings. 2005-06-02 17:45:59 +00:00
tsutsui 628dca69dd Add workaround for volatile struct timeval time vs. todr_*() function
prototype mismatch. Based on sparc64 fixes.
2005-06-02 17:15:10 +00:00
tsutsui 487beba2df Add a const. 2005-06-02 17:14:43 +00:00
matt 22642767aa constify and adapt for newly enabled warnings. 2005-06-02 17:07:30 +00:00
matt 25a0e29a75 When writing coredumps, don't write zero uninstantiated demand-zero pages.
Also, with ELF core dumps, trim trailing zeroes from sections.  These two
changes can shrink coredumps by over 50% in size.
2005-06-02 17:01:43 +00:00
tsutsui bce385b9f7 Add a const. 2005-06-02 16:54:52 +00:00
tsutsui e29ae5bc6f Fix one more shadow warning in #ifdef DIAGNOSTIC. 2005-06-02 16:47:42 +00:00
tsutsui 5ae2540794 Add a const. 2005-06-02 16:45:41 +00:00
tsutsui f0e30792eb 2nd arg of config_foundroot() is aux, so it should not be strings. 2005-06-02 16:44:27 +00:00
tsutsui 8cfaaf11ef Add const. 2005-06-02 16:25:02 +00:00
tsutsui 21d8a5ab2a Add const. 2005-06-02 16:00:16 +00:00
tsutsui a7d2ad1e85 Add a const. 2005-06-02 15:55:49 +00:00
explorer 48c9742722 restore NetBSD RCS tag in __KERNEL_RCSID() macro 2005-06-02 15:48:11 +00:00
tsutsui 9ea6c33d1b Add workaround for volatile struct timeval time vs. todr_*() function
prototype mismatch. Based on sparc64 fixes.
2005-06-02 15:45:56 +00:00
tron e1ec153e47 Backout the last two revisions. These changes should have been applied to
"src/gnu/usr.bin/groff/tmac/mdoc.local". Pointed out by wizd(8) in
private e-mail.
2005-06-02 15:44:20 +00:00
wiz e3214269d3 Add NetBSD-4.0. 2005-06-02 15:34:33 +00:00
tron 87269b5e72 Add NetBSD 4.0. 2005-06-02 15:26:43 +00:00
tsutsui effe013df7 - add const
- u_char -> uint8_t
- sccport0a is not used as pointer, so make it uint32_t address
- idrom is stored in ROM, so make it const rather than volatile
2005-06-02 15:26:35 +00:00
tsutsui 11d4655d5d Fix a shasow warning. 2005-06-02 15:24:04 +00:00
tsutsui 189e121846 Fix shadow warnings. 2005-06-02 15:22:03 +00:00
tron c86b2622dd Change the first argument of the encapsulation check function from
"const struct mbuf *" to "struct mbuf *". Without this change the
actual implementation cannot even use m_copydata() on the mbuf chain
which is broken.
2005-06-02 15:21:35 +00:00
tron a40b37b948 Change first argument of m_copydata() back to "struct mbuf *" because
m_copydata() might eventually modify the "mbuf" structure to support
lazy mbuf mapping as pointed out by YAMAMOTO Takashi on "tech-net".
2005-06-02 15:19:28 +00:00
tsutsui a4c79ce346 Fix a shadow warning. 2005-06-02 14:56:58 +00:00
tsutsui 4b933e86cb Adapt to ddb constification. 2005-06-02 14:51:32 +00:00
tsutsui f9462547b7 Add a const. 2005-06-02 14:48:24 +00:00
he 05721f8fb4 Adapt to -Wcast-qual by adding a const and using __UNVOLATILE() in
a couple of places where memcpy() is used.
2005-06-02 14:41:26 +00:00
rearnsha 1db1f704fc Fix off-by-one error on cache-range functions (where we use op-by-VA) which
caused us to expunge one more line than necessary.
2005-06-02 14:40:05 +00:00
he 88a7db403d Remove the hack related to -Wno-cast-qual, now that we can use
the __UNVOLATILE() macro to annul this warning more selectively.
2005-06-02 14:38:05 +00:00
tsutsui 9593fc1854 Add a const. 2005-06-02 14:36:25 +00:00
he 45cee85f31 Remove the hack to compile oea/pmap.c with -Wno-cast-qual, and instead
make use of the new __UNVOLATILE() macro in memset() usage.
2005-06-02 14:35:08 +00:00
christos 55479da63d simplify weird tests. 2005-06-02 14:32:12 +00:00
he 26318fe161 Add an __UNVOLATILE() macro. It should be used with caution, but
it is required to use this whenever you want to pass a pointer to
volatile data e.g. to memset().  This allows us to still compile
files doing such things with -Wcast-qual and get the rest of the
code checked under that option.

Based on suggestions from tron and christos.
2005-06-02 14:31:38 +00:00
tsutsui 096dae56ce Fix hexstr() for -Wwritable-strings. 2005-06-02 14:29:02 +00:00
tsutsui e240af5cd6 Add consts and fix a shadow warning. 2005-06-02 14:24:26 +00:00
he f4c319d531 Fix variable shadowing and adapt to -Wconst-qual. 2005-06-02 14:11:19 +00:00
tsutsui 0a045d64d9 Add a const. Fixes part of PR kern/30403. 2005-06-02 14:03:20 +00:00
drochner 94a3347a6f add more "const" 2005-06-02 13:17:45 +00:00
drochner c7783422f3 avoid "volatile" cast-aways 2005-06-02 13:11:39 +00:00
christos 4c0c764bc7 minor nits. 2005-06-02 13:04:05 +00:00
drochner c2a5fd0191 more cast-qual fallout 2005-06-02 13:03:27 +00:00
tron c4f68c0d95 Add missing RCS id. Problem pointed out by Jukka Salmi. 2005-06-02 12:58:16 +00:00
tron f0abca45e5 Fix bad botch invented in last change. 2005-06-02 12:42:10 +00:00