diff options
| author | Miles Bader | 2002-03-28 06:43:02 +0000 |
|---|---|---|
| committer | Miles Bader | 2002-03-28 06:43:02 +0000 |
| commit | d4648402547a6e7eab7b6c30f9c8b62f99b76116 (patch) | |
| tree | 99ee3b86b20278dd590de00e55e13841b850ad16 /src/process.c | |
| parent | a3599c3027d915a31513af6ff0f9fafe39f5482d (diff) | |
| download | emacs-d4648402547a6e7eab7b6c30f9c8b62f99b76116.tar.gz emacs-d4648402547a6e7eab7b6c30f9c8b62f99b76116.zip | |
(DATAGRAM_CONN_P): Make sure PROC is really a process.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 8f50f100c3c..3742fe23ad2 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -307,7 +307,7 @@ struct sockaddr_and_len { | |||
| 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) |