replace XCALLOC with XCNEWVEC or XCNEW
[deliverable/binutils-gdb.git] / gdb / serial.c
index c87875fc96b7c415791aebbef194fa1d886072b6..2b1ecedae38801f17fe6db66c7bd08f3f94cb4c9 100644 (file)
@@ -263,7 +263,7 @@ serial_fdopen_ops (const int fd, const struct serial_ops *ops)
   if (!ops)
     return NULL;
 
-  scb = XCALLOC (1, struct serial);
+  scb = XCNEW (struct serial);
 
   scb->ops = ops;
 
This page took 0.036772 seconds and 4 git commands to generate.