2004-12-05 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / ser-pipe.c
index bca0e54e4bab95eb834e2229f6dc1d1ac228ccd2..3e04973f854a91d2a2c23a346462c333ae68be98 100644 (file)
@@ -98,7 +98,7 @@ pipe_open (struct serial *scb, const char *name)
       for (old = pidlist; old; old = old->next)
        close (fileno (old->fp));       /* don't allow a flush */
 #endif
-      execl ("/bin/sh", "sh", "-c", name, NULL);
+      execl ("/bin/sh", "sh", "-c", name, (char *) 0);
       _exit (127);
     }
 
@@ -138,7 +138,7 @@ void
 _initialize_ser_pipe (void)
 {
   struct serial_ops *ops = XMALLOC (struct serial_ops);
-  memset (ops, sizeof (struct serial_ops), 0);
+  memset (ops, 0, sizeof (struct serial_ops));
   ops->name = "pipe";
   ops->next = 0;
   ops->open = pipe_open;
This page took 0.023584 seconds and 4 git commands to generate.