Commit d4648402 authored by Miles Bader's avatar Miles Bader
Browse files

(DATAGRAM_CONN_P): Make sure PROC is really a process.

parent a3599c30
2002-03-28 Miles Bader <miles@gnu.org>
* process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2002-03-27 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* process.c (set-network-process-options): Add usage.
......
......@@ -307,7 +307,7 @@ struct sockaddr_and_len {
int len;
} datagram_address[MAXDESC];
#define DATAGRAM_CHAN_P(chan) (datagram_address[chan].sa != 0)
#define DATAGRAM_CONN_P(proc) (datagram_address[XPROCESS (proc)->infd].sa != 0)
#define DATAGRAM_CONN_P(proc) (PROCESSP (proc) && datagram_address[XPROCESS (proc)->infd].sa != 0)
#else
#define DATAGRAM_CHAN_P(chan) (0)
#define DATAGRAM_CONN_P(proc) (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment