Commit Graph

137716 Commits

Author SHA1 Message Date
itohy
8202086879 cc1: warnings being treated as errors
../../../../dev/pcmcia/if_wi_pcmcia.c: In function `wi_pcmcia_write_firm':
../../../../dev/pcmcia/if_wi_pcmcia.c:511: warning: cast discards qualifiers from pointer target type
../../../../dev/pcmcia/if_wi_pcmcia.c:512: warning: cast discards qualifiers from pointer target type
2005-06-10 14:08:06 +00:00
christos
f1171a425e constify and unshadow. 2005-06-10 13:22:42 +00:00
tron
0423caa6e2 Include "sys/uio.h" instead of forward defining "uio_seg" which causes
a lint failure while building "libc".
2005-06-10 11:36:38 +00:00
bouyer
79824021ea As ether_input() is always called at IPL_NET, there is no need to
protect the IF_* operations with splnet()/splx().
2005-06-10 11:11:38 +00:00
bouyer
5ce57a0010 call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).
2005-06-10 10:28:17 +00:00
mrg
11e42a915f re(4) works on sparc64 now. bump date. 2005-06-10 08:06:33 +00:00
junyoung
5f95214f7d More clarification on uintN_t. 2005-06-10 06:35:41 +00:00
matt
cb2038dada Welcome to 3.99.6 2005-06-10 05:11:16 +00:00
matt
e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
dyoung
d485a761e3 Sprinkle __UNCONST() and rename variables to quiet uiet -Wcast-qual,
-Wshadow complaints.
2005-06-10 02:35:34 +00:00
thorpej
83f1b1db79 EtherLink 16, not EtherLink II 2005-06-10 01:11:49 +00:00
lukem
ddc3d4ca5a Implement:
int getline(FILE *stream, char *buf, size_t buflen, const char **errormsg)
	Read a line from the FILE stream into buf/buflen using fgets(), so up
	to buflen-1 chars will be read and the result will be NUL terminated.
	If the line has a trailing newline it will be removed.
	If the line is too long, excess characters will be read until
	newline/EOF/error.
	Various -ve return values indicate different errors, and errormsg
	will be changed to an error description if it's not NULL.

Convert to use getline() instead of fgets() whenever reading user input
to ensure that an overly long input line doesn't leave excess characters
for the next input operation to accidentally use as input.

Zero out the password & account after we've finished with it.

Consistently use getpass(3) (i.e, character echo suppressed) when
reading the account data.  For some reason, historically the "login"
code suppressed echo for Account: yet the "user" command did not!

Display the hostname in the "getaddrinfo failed" warning.

Appease some -Wcast-qual warnings.  Fixing all of these requires
significant code refactoring.  (mmm, legacy code).
2005-06-10 00:18:46 +00:00
tron
731af7cc71 Add raid(4) to the list of machine-independent devices which "sysinst"
recognizes. This allows upgrading e.g. NetBSD-macppc or NetBSD-sparc64
systems with RAIDframe mirrored root devices.
2005-06-09 22:14:20 +00:00
yamt
2d02304deb use malloc rather than mem_alloc (which is implemented using calloc)
for receive/send buffers to avoid unnecessarily anonymous memory bloat.
2005-06-09 22:13:17 +00:00
rjs
a51d4c4377 Add const. 2005-06-09 22:01:06 +00:00
rjs
f34c276ab5 Pass NULL as second argument to config_rootfound. 2005-06-09 22:00:40 +00:00
rjs
00fe72facb Add const. 2005-06-09 21:59:24 +00:00
martin
d931a71e12 First cut at 2.0 -> 3.0 port specific changes 2005-06-09 21:51:37 +00:00
jmc
a31f50b210 Fix call to config_rootfound to pass -Wcast-qual 2005-06-09 21:49:22 +00:00
he
2f5d3f6059 Adapt to compiling with -Wcast-qual by adding consts where appropriate. 2005-06-09 21:43:13 +00:00
he
253884a9c4 Rename local variable cpu_intr' to cpu_int' to avoid shadowing. 2005-06-09 21:42:33 +00:00
he
2c12fd1a47 Change the second argument of config_rootfound() from a string to NULL,
so that we compile with -Wcast-qual.
2005-06-09 21:41:52 +00:00
jmc
51ed2fd82d Fixes for -Wcast-qual. Add some needed const around char *'s,
__UNVOLATILE in READ/WRITE_REG and convert the rtc functions to properaly
take a volatile timeval
2005-06-09 17:46:19 +00:00
lukem
cc5aca9af5 copyright maintenance 2005-06-09 16:38:29 +00:00
he
9eabff5290 Appease -Wcast-qual by adding consts in appropriate places. 2005-06-09 16:02:19 +00:00
tsutsui
446f2d2cfa Regen from GENERIC.in rev 1.36:
> - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
>   (still commented out)
> - Add (also commented out) options BUFQ_PRIOCSCAN.
>
> Suggested by perry and soda on tech-kern.
> Please refer options(4) for details for these options.
2005-06-09 14:50:11 +00:00
tsutsui
4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
he
d05c61ee69 Add consts to make this build with -Wcast-qual. 2005-06-09 13:49:15 +00:00
he
116fd4948d Use NULL and not a string constant as the second argument to
config_rootfound().
2005-06-09 13:48:12 +00:00
he
d049b36b69 Add const to the prom_getenv() vector argument.
More function pointer prototypes can probably have const added, but
this gets us building for now.
2005-06-09 13:47:28 +00:00
he
78734c90bf Prefix variables in a macro with an underscore to avoid shadowing problems. 2005-06-09 13:45:31 +00:00
tron
abba7e56c8 Enable RAIDframe support in the NetBSD-macppc installation media.
Based on patches submitted by Ian Spray in PR port-macppc/30465.
2005-06-09 13:29:57 +00:00
he
e06cf89e96 Rename local variable tick' to ticks' to make this build with -Wshadow. 2005-06-09 12:25:32 +00:00
he
3ee7e97fcc Now that OF_read and OF_write have different signatures, we need to
cast one of them before assigning to a common function pointer.
Yes, this breaks strict type checking, but is needed to compile with
-Wcast-qual turned on.
2005-06-09 12:23:23 +00:00
tron
bd52bf6180 Change marker from "pmppc" to "powerpc" because a NetBSD-macppc build
is also affected.
2005-06-09 12:20:12 +00:00
he
7eaf447237 Adapt to compiling with -Wcast-qual by adding consts. 2005-06-09 11:24:04 +00:00
he
500225c986 Adapt to compiling with -Wcast-qual by passing NULL instead of a string
to config_rootfound().
2005-06-09 11:23:36 +00:00
he
1ce7c753b3 Add an initialization to placate -Wuninitialized.
Marked with XXXGCC for pmppc (found while compiling for it).
2005-06-09 09:36:19 +00:00
he
cc17b14ba8 Adapt to compiling with -Wcast-qual and -Wshadow. 2005-06-09 09:24:45 +00:00
he
bdc36c4d9b Adapt to compiling with -Wcast-qual by constifying vt220_putstring()'s
first argument.  Also gets rid of unneccessary casts to (u_char*).
2005-06-09 09:23:39 +00:00
he
f1f4a50e8b Adapt to compiling with -Wcast-qual by constifying a char* field. 2005-06-09 09:15:28 +00:00
he
54960c1bb7 Adapt to compiling with -Wcast-qual and -Wshadow by adding const in
appropriate places and renaming a few local variables.
2005-06-09 08:05:31 +00:00
skrll
00b45e0cff When the PDC_TLB_INFO call fails default to an HPT size of PAGE_SIZE.
My 715/50 can now boot.

Clean patch from Chuck Silvers.
2005-06-09 07:18:17 +00:00
he
f9c7d41f97 Adapt to compiling with -Wcast-qual by adding a const. 2005-06-09 06:48:44 +00:00
he
0b11d7187e Adapt to compiling with -Wcast-qual by setting the last argument to
config_rootfound() to NULL.
2005-06-09 06:48:16 +00:00
he
10d9cac89f Adapt to compiling with -Wcast-qual by adding const to a function
parameter of db_mach_cpu().
2005-06-09 06:27:18 +00:00
atatat
420d91208b Properly fix the constipated lossage wrt -Wcast-qual and the sysctl
code.  I know it's not the prettiest code, but it seems to work rather
well in spite of itself.
2005-06-09 02:19:59 +00:00
he
ac898acfa7 Rename an inner variable shadowing the 'v' parameter to appease -Wshadow. 2005-06-08 22:38:16 +00:00
he
beb03e4d32 Add __UNVOLATILE() to a cast when calling memset() to appease -Wcast-qual. 2005-06-08 22:33:56 +00:00
rjs
e222d37a70 Add message definitions for SWIM and for ADB autopoll. 2005-06-08 22:16:44 +00:00