SCCS-vsn: sys/kern/init_main.c 7.6
SCCS-vsn: sys/kern/tty.c 7.12
SCCS-vsn: sys/kern/uipc_socket.c 7.9
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)init_main.c 7.5 (Berkeley) %G%
+ * @(#)init_main.c 7.6 (Berkeley) %G%
*/
#include "../machine/pte.h"
*/
#include "../machine/pte.h"
register int i;
register struct buf *sp = swbuf;
struct swdevt *swp;
register int i;
register struct buf *sp = swbuf;
struct swdevt *swp;
/*
* Count swap devices, and adjust total swap space available.
/*
* Count swap devices, and adjust total swap space available.
*/
if (nswdev > 1)
maxpgio = (maxpgio * (2 * nswdev - 1)) / 2;
*/
if (nswdev > 1)
maxpgio = (maxpgio * (2 * nswdev - 1)) / 2;
+ if (error = swfree(0)) {
+ printf("swfree errno %d\n", error); /* XXX */
+ panic("swapinit swfree 0");
+ }
/*
* Now set up swap buffer headers.
/*
* Now set up swap buffer headers.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)tty.c 7.11 (Berkeley) %G%
+ * @(#)tty.c 7.12 (Berkeley) %G%
*/
#include "../machine/reg.h"
*/
#include "../machine/reg.h"
if (!(tp->t_oflag&OPOST))
ce = cc;
else {
if (!(tp->t_oflag&OPOST))
ce = cc;
else {
- ce = cc - scanc((unsigned)cc, (caddr_t)cp,
- (caddr_t)partab, 077);
+ ce = cc - scanc((unsigned)cc, (u_char *)cp,
+ (u_char *)partab, 077);
/*
* If ce is zero, then we're processing
* a special character through ttyoutput.
/*
* If ce is zero, then we're processing
* a special character through ttyoutput.
case SO_SNDBUF:
case SO_RCVBUF:
case SO_SNDBUF:
case SO_RCVBUF:
- if (sbreserve(optname == SO_SNDBUF ? &so->so_snd :
- &so->so_rcv, *mtod(m, int *)) == 0) {
+ if (sbreserve(optname == SO_SNDBUF ?
+ &so->so_snd : &so->so_rcv,
+ (u_long) *mtod(m, int *)) == 0) {
error = ENOBUFS;
goto bad;
}
error = ENOBUFS;
goto bad;
}