aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c
index 4a11e7f8b8f..a59e4182e4c 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2945,19 +2945,17 @@ usage: (make-serial-process &rest ARGS) */)
2945 return proc; 2945 return proc;
2946} 2946}
2947 2947
2948void set_network_socket_coding_system (Lisp_Object proc) 2948void set_network_socket_coding_system (Lisp_Object proc,
2949 Lisp_Object host,
2950 Lisp_Object service,
2951 Lisp_Object name)
2949{ 2952{
2950 Lisp_Object tem; 2953 Lisp_Object tem;
2951 struct Lisp_Process *p = XPROCESS (proc); 2954 struct Lisp_Process *p = XPROCESS (proc);
2952 Lisp_Object contact = p->childp; 2955 Lisp_Object contact = p->childp;
2953 Lisp_Object service, host, name;
2954 Lisp_Object coding_systems = Qt; 2956 Lisp_Object coding_systems = Qt;
2955 Lisp_Object val; 2957 Lisp_Object val;
2956 2958
2957 service = Fplist_get (contact, QCservice);
2958 host = Fplist_get (contact, QChost);
2959 name = Fplist_get (contact, QCname);
2960
2961 tem = Fplist_member (contact, QCcoding); 2959 tem = Fplist_member (contact, QCcoding);
2962 if (!NILP (tem) && (!CONSP (tem) || !CONSP (XCDR (tem)))) 2960 if (!NILP (tem) && (!CONSP (tem) || !CONSP (XCDR (tem))))
2963 tem = Qnil; /* No error message (too late!). */ 2961 tem = Qnil; /* No error message (too late!). */
@@ -3931,7 +3929,7 @@ usage: (make-network-process &rest ARGS) */)
3931 p->gnutls_boot_parameters = tem; 3929 p->gnutls_boot_parameters = tem;
3932#endif 3930#endif
3933 3931
3934 set_network_socket_coding_system (proc); 3932 set_network_socket_coding_system (proc, service, host, name);
3935 3933
3936 unbind_to (count, Qnil); 3934 unbind_to (count, Qnil);
3937 3935