]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fopen_network_stream): Use GCPRO6.
authorKim F. Storm <storm@cua.dk>
Fri, 1 Mar 2002 21:04:00 +0000 (21:04 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 1 Mar 2002 21:04:00 +0000 (21:04 +0000)
src/ChangeLog
src/process.c

index 1f04069c06a422ddc2d6920931d8e2d1c42022bd..008ac64ea07d307dd8f7071deef1bc39061680d5 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-01  Kim F. Storm  <storm@cua.dk>
+
+       * lisp.h (GCPRO6): New macro.
+
+       * process.c (Fopen_network_stream): Use GCPRO6.
+
 2002-03-01  Kim F. Storm  <storm@cua.dk>
 
        * process.c (Qconnect, Qfailed): New variables.
index 21845b98b41628874ebd0076e6be620f73a54fcb..152fd679405e968f9ccbf29c98f1cb2baf83e803 100644 (file)
@@ -1837,7 +1837,7 @@ NON-BLOCKING is optional arg requesting an non-blocking connect.
   int ret = 0;
   int xerrno = 0;
   int s = -1, outch, inch;
-  struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
+  struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6;
   int retry = 0;
   int count = specpdl_ptr - specpdl;
   int count1;
@@ -1859,8 +1859,7 @@ NON-BLOCKING is optional arg requesting an non-blocking connect.
 #endif
 
   /* Can only GCPRO 5 variables */
-  sentinel = Fcons (sentinel, filter);
-  GCPRO5 (name, buffer, host, service, sentinel);
+  GCPRO6 (name, buffer, host, service, sentinel, filter);
   CHECK_STRING (name);
   CHECK_STRING (host);
 
@@ -2155,8 +2154,8 @@ NON-BLOCKING is optional arg requesting an non-blocking connect.
   XPROCESS (proc)->childp = Fcons (host, Fcons (service, Qnil));
   XPROCESS (proc)->command_channel_p = Qnil;
   XPROCESS (proc)->buffer = buffer;
-  XPROCESS (proc)->sentinel = XCAR (sentinel);
-  XPROCESS (proc)->filter = XCDR (sentinel);
+  XPROCESS (proc)->sentinel = sentinel;
+  XPROCESS (proc)->filter = filter;
   XPROCESS (proc)->command = Qnil;
   XPROCESS (proc)->pid = Qnil;
   XSETINT (XPROCESS (proc)->infd, inch);