summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-09-07 15:00:19 +0000
committerart <art@openbsd.org>2007-09-07 15:00:19 +0000
commit28a8f404b7684433ec8c33a1be137fb4052d1648 (patch)
tree22f78d06ee32ceaa581cf540b3eaddba7db0b837 /sys/kern/tty.c
parentSynced atomicio implementation in nc and sendbug with ssh. (diff)
downloadwireguard-openbsd-28a8f404b7684433ec8c33a1be137fb4052d1648.tar.xz
wireguard-openbsd-28a8f404b7684433ec8c33a1be137fb4052d1648.zip
Use M_ZERO in a few more places to shave bytes from the kernel.
eyeballed and ok dlg@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 5a8c65440c0..928305b2cd9 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.72 2007/03/15 10:22:30 art Exp $ */
+/* $OpenBSD: tty.c,v 1.73 2007/09/07 15:00:20 art Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -2235,8 +2235,8 @@ ttymalloc(void)
{
struct tty *tp;
- MALLOC(tp, struct tty *, sizeof(struct tty), M_TTYS, M_WAITOK);
- bzero(tp, sizeof *tp);
+ tp = malloc(sizeof(struct tty), M_TTYS, M_WAITOK|M_ZERO);
+
/* XXX: default to 1024 chars for now */
clalloc(&tp->t_rawq, 1024, 1);
clalloc(&tp->t_canq, 1024, 1);