]> git.eshelyaron.com Git - emacs.git/commitdiff
(make_process): Use allocate_process.
authorGerd Moellmann <gerd@gnu.org>
Wed, 28 Feb 2001 13:29:03 +0000 (13:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 28 Feb 2001 13:29:03 +0000 (13:29 +0000)
src/process.c

index 2434851b7bc77a70916f7bd728940504b27862af..b41478c0bd31213e1c99af9f39859616c29c5841 100644 (file)
@@ -1,5 +1,5 @@
 /* Asynchronous subprocess control for GNU Emacs.
-   Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999
+   Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999, 2001
       Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
@@ -434,17 +434,12 @@ Lisp_Object
 make_process (name)
      Lisp_Object name;
 {
-  struct Lisp_Vector *vec;
   register Lisp_Object val, tem, name1;
   register struct Lisp_Process *p;
   char suffix[10];
   register int i;
 
-  vec = allocate_vectorlike ((EMACS_INT) VECSIZE (struct Lisp_Process));
-  for (i = 0; i < VECSIZE (struct Lisp_Process); i++)
-    vec->contents[i] = Qnil;
-  vec->size = VECSIZE (struct Lisp_Process);
-  p = (struct Lisp_Process *)vec;
+  p = allocate_process ();
 
   XSETINT (p->infd, -1);
   XSETINT (p->outfd, -1);