Mercurial > hg > xemacs-beta
diff src/device-tty.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 43dd3413c7c7 |
children | 2c611d1463a6 |
line wrap: on
line diff
--- a/src/device-tty.c Mon Aug 13 09:54:24 2007 +0200 +++ b/src/device-tty.c Mon Aug 13 09:55:28 2007 +0200 @@ -50,11 +50,7 @@ static void allocate_tty_device_struct (struct device *d) { - d->device_data = - (struct tty_device *) xmalloc (sizeof (struct tty_device)); - - /* zero out all slots. */ - memset (d->device_data, 0, sizeof (struct tty_device)); + d->device_data = xnew_and_zero (struct tty_device); } static void @@ -171,7 +167,7 @@ tail = XCDR (tail)) { struct frame *f = XFRAME (XCAR (tail)); - + /* We know the frame is tty because we made sure that the device is tty. */ change_frame_size (f, height, width, 1);