comparison 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
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
98 } 98 }
99 99
100 static void 100 static void
101 free_tty_device_struct (struct device *d) 101 free_tty_device_struct (struct device *d)
102 { 102 {
103 struct tty_device *td = (struct tty_device *) d->device_data; 103 if (d->device_data)
104 if (td) 104 xfree (d->device_data, void *);
105 xfree (td);
106 } 105 }
107 106
108 static void 107 static void
109 tty_delete_device (struct device *d) 108 tty_delete_device (struct device *d)
110 { 109 {