Mercurial > emacs
comparison src/process.c @ 44194:09f1bd069147
(DATAGRAM_CONN_P): Make sure PROC is really a process.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 28 Mar 2002 06:42:43 +0000 |
parents | 888d736c0e91 |
children | f76a1425eb34 |
comparison
equal
deleted
inserted
replaced
44193:f87a8b50aeff | 44194:09f1bd069147 |
---|---|
305 struct sockaddr_and_len { | 305 struct sockaddr_and_len { |
306 struct sockaddr *sa; | 306 struct sockaddr *sa; |
307 int len; | 307 int len; |
308 } datagram_address[MAXDESC]; | 308 } datagram_address[MAXDESC]; |
309 #define DATAGRAM_CHAN_P(chan) (datagram_address[chan].sa != 0) | 309 #define DATAGRAM_CHAN_P(chan) (datagram_address[chan].sa != 0) |
310 #define DATAGRAM_CONN_P(proc) (datagram_address[XPROCESS (proc)->infd].sa != 0) | 310 #define DATAGRAM_CONN_P(proc) (PROCESSP (proc) && datagram_address[XPROCESS (proc)->infd].sa != 0) |
311 #else | 311 #else |
312 #define DATAGRAM_CHAN_P(chan) (0) | 312 #define DATAGRAM_CHAN_P(chan) (0) |
313 #define DATAGRAM_CONN_P(proc) (0) | 313 #define DATAGRAM_CONN_P(proc) (0) |
314 #endif | 314 #endif |
315 | 315 |