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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/process.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 040e9ee67a5..35b32cc4fa0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-03-28 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process. | ||
| 4 | |||
| 1 | 2002-03-27 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 5 | 2002-03-27 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 6 | ||
| 3 | * process.c (set-network-process-options): Add usage. | 7 | * process.c (set-network-process-options): Add usage. |
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) |