From e582dcfe26602039ca7f42eaa404338237720a1a Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 31 May 2003 20:33:18 +0000 Subject: Put definition of struct svr4_sockcache_entry in a .h file rather than having two independent definitions in two .c files. Fiddle surrounding details to match. Found by: FlexeLint --- sys/dev/streams/streams.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sys/dev/streams') diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index bd0aab9..822249a 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -65,16 +65,7 @@ static int svr4_soo_close(struct file *, struct thread *); static int svr4_ptm_alloc(struct thread *); static d_open_t streamsopen; -struct svr4_sockcache_entry { - struct proc *p; /* Process for the socket */ - void *cookie; /* Internal cookie used for matching */ - struct sockaddr_un sock;/* Pathname for the socket */ - dev_t dev; /* Device where the socket lives on */ - ino_t ino; /* Inode where the socket lives on */ - TAILQ_ENTRY(svr4_sockcache_entry) entries; -}; - -TAILQ_HEAD(svr4_sockcache_head, svr4_sockcache_entry) svr4_head; +struct svr4_sockcache_head svr4_head; /* Initialization flag (set/queried by svr4_mod LKM) */ int svr4_str_initialized = 0; -- cgit v1.1