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
wiz
35d02e369c
Update pool_prime description to match change in v1.55 of kern/subr_pool.c
...
(from 2001).
Noted by go@, no comment to diff for over a month from thorpej@.
2005-06-02 11:42:16 +00:00
bad
cf6ebbf616
Be explicit about which beginning the offset is applied to in m_copydata().
2005-06-02 11:38:28 +00:00
lukem
616bb5ee8e
appease gcc -Wuninitialized
2005-06-02 11:29:01 +00:00
lukem
274427706d
Rewrite method used to determine the ethernet address of the desired
...
interface to not use uninitalized variables.
Bug crept in in conversion to getifaddrs().
Detected with gcc -Wuninitalized.
2005-06-02 11:27:44 +00:00
lukem
7f4d732106
appease gcc -Wuninitialized
2005-06-02 11:10:00 +00:00
lukem
51d9d5224b
omapi_io_destroy(): ensure last is initialized before use, similar to the
...
method used in omapi_unregister_io_object().
Detected with gcc -Wuninitialized
2005-06-02 11:09:02 +00:00
tron
41dcb3a310
Remove type casts and lint directives which are now longer necessary
...
because the first argument of m_copydata() is "const struct mbuf *" now.
2005-06-02 10:54:58 +00:00
tron
c54394a240
Change the first argument of m_copydata() to "const struct mbuf *" (which
...
doesn't require any implementation changes). This will allow us to get
rid off a lot of nasty type casts.
2005-06-02 10:34:59 +00:00
drochner
fea4b15e35
remove __UNCONST which is not needed anymore
2005-06-02 10:29:04 +00:00
drochner
bce73c1519
in siginfo conversion functions, declare the source operand as "const"
2005-06-02 10:27:43 +00:00
he
f25c7d55fa
Document the hack to compile sys/arch/powerpc/oea/pmap.c with
...
-Wno-cast-qual.
2005-06-02 10:25:22 +00:00
he
f483e62113
Put a band-aid over the cast qualification warnings for oea/pmap.c.
...
It cannot be compiled with -Wno-cast-qual due to a volatile pointer
being passed to memset(), and there's no easy way other than open-
coding memset() to fix this. So instead we cheat for now and add
-Wno-cast-qual to CFLAGS for this file. To be documented in doc/HACKS.
2005-06-02 10:22:20 +00:00
he
da2e0654e4
Adapt to const additions.
2005-06-02 10:16:31 +00:00
is
4daeda666d
fix copy/paste/don'tupdate bug (fix from PR 22232 by Robert Elz).
2005-06-02 10:08:36 +00:00
lukem
4952bc0ec3
appease gcc -Wuninitialized
2005-06-02 09:58:55 +00:00
lukem
311c22130d
appease gcc -Wuninitialized
2005-06-02 09:47:37 +00:00
he
19108310c3
Fix variable shadowing warning.
2005-06-02 09:47:21 +00:00
he
50ea728723
Fix variable shadowing warnings by renaming the innermost variables.
2005-06-02 09:46:09 +00:00
lukem
1fab072e48
appease gcc -Wuninitialized
2005-06-02 09:42:57 +00:00
lukem
14e2784ec2
Remove an effectively unused variable.
...
Appease gcc -Wuninitialized.
2005-06-02 09:41:12 +00:00
lukem
0fc9160967
appease gcc -Wuninitialized
2005-06-02 09:32:57 +00:00
lukem
677504d9ca
Test the correct pointer 'rfl' rather than an uninitialized 'fl' when
...
determining whether the lock was a LOCK_V4 or not.
Detected with gcc -Wuninitialized.
2005-06-02 09:30:27 +00:00
lukem
f604dfed13
WARNS=3
2005-06-02 09:21:01 +00:00