]> Git Repo - binutils.git/blobdiff - gdb/ser-base.c
daily update
[binutils.git] / gdb / ser-base.c
index ae92dfb91a63f256f399d7cb7c98c16bdff51b3c..06efbc1c1af0931221e709b17af15f6d361c1405 100644 (file)
@@ -23,8 +23,6 @@
 #include "event-loop.h"
 
 #include "gdb_select.h"
-#include <string.h>
-#include "gdb_assert.h"
 #include <sys/time.h>
 #ifdef USE_WIN32API
 #include <winsock2.h>
@@ -498,14 +496,14 @@ serial_ttystate
 ser_base_get_tty_state (struct serial *scb)
 {
   /* Allocate a dummy.  */
-  return (serial_ttystate) XMALLOC (int);
+  return (serial_ttystate) XNEW (int);
 }
 
 serial_ttystate
 ser_base_copy_tty_state (struct serial *scb, serial_ttystate ttystate)
 {
   /* Allocate another dummy.  */
-  return (serial_ttystate) XMALLOC (int);
+  return (serial_ttystate) XNEW (int);
 }
 
 int
This page took 0.024964 seconds and 4 git commands to generate.