Mercurial > hg > xemacs-beta
diff src/device-tty.c @ 1726:a8d8f419b459
[xemacs-hg @ 2003-09-30 15:26:34 by james]
Add type information to xfree to avoid alias creation.
author | james |
---|---|
date | Tue, 30 Sep 2003 15:27:01 +0000 |
parents | 79c6ff3eef26 |
children | 04bc9d2f42c7 |
line wrap: on
line diff
--- a/src/device-tty.c Mon Sep 29 21:53:04 2003 +0000 +++ b/src/device-tty.c Tue Sep 30 15:27:01 2003 +0000 @@ -100,9 +100,8 @@ static void free_tty_device_struct (struct device *d) { - struct tty_device *td = (struct tty_device *) d->device_data; - if (td) - xfree (td); + if (d->device_data) + xfree (d->device_data, void *); } static void