rjs
aa1713b750
Rename shadowing variable.
2005-06-05 18:22:45 +00:00
thorpej
5ecc953bdb
config and genassym are not sysadmin tools, they are development tools.
...
As such, they don't belong in /usr/sbin, but rather /usr/bin. Move them
there.
2005-06-05 18:19:52 +00:00
he
28063351c0
Adapt to compiling with -Wcast-qual and -Wshadow.
2005-06-05 17:56:31 +00:00
he
745ad09fd4
Adapt to building with -Wcast-qual. Regrettably we have to use
...
__UNCONST() in one sysctl_lookup() invocation (for now).
2005-06-05 15:43:30 +00:00
he
78fc2f2db7
Remove an unneeded cast and add some consts.
2005-06-05 15:39:17 +00:00
he
34094b7804
Catch up to changes in prototype for a few functions, which changed some
...
"char*" parameters to "const char*".
2005-06-05 15:36:47 +00:00
he
627c254473
Work around -Wcast-qual by adding another __UNVOLATILE() when using
...
atomic_set_bit().
2005-06-05 15:28:27 +00:00
wiz
fc2b917f4e
Bump date for BUGS section removal.
2005-06-05 15:22:04 +00:00
soren
4b45984050
Xref ahd.4.
2005-06-05 15:21:23 +00:00
soren
489bf9d06d
Microphone support was added some time ago.
2005-06-05 15:19:35 +00:00
tsutsui
3c37988ff0
Make sure that struct mainbus_attach_args is actually allocated.
...
With the previous autoconf.c and mainbus.c, the memory in rodata section
which stores "mainbus" strings (for the second arg in config_rootfound())
is used to fill mainbus_attach_args in mainbus_search(). Oh well...
2005-06-05 15:02:18 +00:00
he
aba38ac9a9
Make reloc_elfmag const, so that this compiles.
2005-06-05 14:17:51 +00:00
he
62200edc2e
Fix a shadowing warning by renaming an (unused) function parameter.
2005-06-05 13:53:23 +00:00
he
c1fc8d369e
Adapt to compiling with -Wcast-qual by sprinkling around some consts.
...
Had to use __UNCONST() in one case of sysctl_lookup() use.
2005-06-05 13:49:26 +00:00
he
1994354d47
There was still a reference to bufpages here (preceded by an XXX comment)
...
so provide a local extern declaration after it was removed from <sys/buf.h>.
2005-06-05 12:36:24 +00:00
he
ed9b489c17
Adapt to -Wcast-qual by adding a few consts.
2005-06-05 11:35:09 +00:00
he
0c68b63d19
Adapt to -Wcast-qual and -Wshadow by adding const and renaming a
...
few local variables. One problem remains which makes this not
build related to the initial assignment of reloc_elfmag, where the
portmaster's opinion has been sought.
2005-06-05 11:34:12 +00:00
he
6082beaaf9
Revert previous and fix the todr_gettime() / todr_settime() problem
...
differently, simply by removing the now unneccessary cast.
2005-06-05 11:29:06 +00:00
he
ee2fad4551
Add volatile to the second argument to _gettime / _settime functions.
2005-06-05 09:32:32 +00:00
he
076021d300
Adapt to compiling with -Wcast-qual by sprinkling consts around.
2005-06-05 09:08:48 +00:00
jdc
f13fcfe512
Rename 'ncpus' to '_ncpus', otherwise we shadow sparc/sparc64's 'ncpus'
...
when MULTIPROCESSOR is defined.
2005-06-05 09:04:49 +00:00
he
82e01bc59d
Now that /var/log/wtmp and /var/log/wtmp should have group=utmp,
...
instruct newsyslog to follow up this when rotating these logs.
2005-06-05 07:33:17 +00:00
lukem
e82ae39d67
Cosmetic tweak previous; IMHO we don't need the XXX comment in this
...
case, since I prefer to NULL initialize variables in this situation.
2005-06-05 01:15:29 +00:00
heinz
b1539d591e
Updated URL for list of NetBSD mirrors.
2005-06-04 23:24:40 +00:00
uwe
0ecc598f5b
Drop cargo cult aux="mainbus" argument to config_rootfound.
...
Makes -Wcast-qual happy.
2005-06-04 22:57:20 +00:00
uwe
c7dd3646ae
Update to reflect the constification of the arguments of
...
ttyldisc_lookup and ttyldisc_remove.
2005-06-04 22:49:32 +00:00
uwe
fb2315c16b
Constify argument to ttyldisc_lookup and ttyldisc_remove.
2005-06-04 22:45:11 +00:00
he
cc129440dd
Fix -Wcast-qual warnings, unfortunately using __UNCONST() for sysctl()
...
function parameters.
2005-06-04 22:40:03 +00:00
uwe
9bb93565ec
Catch up with constification.
2005-06-04 22:38:24 +00:00
he
82ea600ca2
Fix -Wcast-qual by sprinkling some consts, and remove named
...
parameters from a function prototype to avoid shadowing.
Also fix a couple of other shadowing problems.
2005-06-04 22:37:51 +00:00
he
0d43148fcf
Add an initialization to appease -Wuninitialized. Apparently the
...
sparc64 compiler gets this wrong.
2005-06-04 22:14:00 +00:00
manu
6ec5a5a9b7
Fix Xauth login with PAM authentication
2005-06-04 22:09:27 +00:00
he
a816cb98da
Fix shadowing warning.
2005-06-04 22:05:40 +00:00
manu
2c39301c40
Endianness bug fix
2005-06-04 21:55:05 +00:00
he
d4dda01010
Add use of an __UNVOLATILE() to appease -Wcast-qual.
...
May be revisited if atomic_set_bit()'s signature can change.
2005-06-04 21:45:05 +00:00
he
b10da2c299
Add some const and rename a local variable to avoid shadowing.
2005-06-04 21:22:12 +00:00
he
24b7db0ccd
Fix shadowing warnings by renaming local variables and by
...
removing parameter names in function prototype.
2005-06-04 21:19:23 +00:00
he
47e106509e
Add an __UNVOLATILE() in atomic_set_bit() usage.
...
Revisit if we can adjust atomic_set_bit()'s signature.
2005-06-04 21:18:18 +00:00
he
848febea1d
Rename an (unused) argument to avoid shadowing.
2005-06-04 20:36:15 +00:00
he
5f9bd2c9a7
Rename local variables to avoid shadowing, and add a few const qualifications.
2005-06-04 20:33:57 +00:00
he
fb96dc834d
Rename an (unused) argument to appease -Wshadow.
2005-06-04 20:19:47 +00:00
he
aafdb08c5a
Fix the various todr_gettime() and todr_settime() fallouts from
...
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*". Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>. This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.
Reviewed by thorpej.
2005-06-04 20:14:24 +00:00
dsl
217446d2aa
Only advance 'p' once each time around the loop....
2005-06-04 20:09:56 +00:00
lukem
3ed9ffcae1
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
...
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
2005-06-04 16:17:17 +00:00
he
5cc5caddf2
Adapt to compiling with -Wshadow and -Wcast-qual, by adding const
...
qualification in places and renaming a few local variables.
Also adds a couple uses of __UNVOLATILE() to allow passing volatile
variables to functions wanting e.g. caddr_t.
2005-06-04 14:42:36 +00:00
he
5cfd2bfc98
Add use of __UNCONST() when passing a constant string to some of the
...
general autoconf functions which typically take a "void*". There may
be reason to revisit this later if the signature for the autoconf
functions can be adapted, but for now this gets the code building.
2005-06-04 14:35:53 +00:00
he
dfaf8269a3
Remove the unused global variable "baud" because it is causing
...
shadowing warnings.
2005-06-04 14:31:15 +00:00
he
e8576a0a7f
Prefix local variables in macros with _, and add a character to
...
one variable name to avoid a shadowing warning.
2005-06-04 14:30:10 +00:00
rearnsha
b7c8c07e17
Fix shadowed use of hz, and attempts to cast away volatile on time.
2005-06-04 14:00:18 +00:00
chs
48e4eb59a3
adapt to const changes.
2005-06-04 13:48:35 +00:00