From 66f7a83274f5f01d9bee52a590f1b1ca669df720 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp 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') diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index bd0aab995fa82..822249a57ed37 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.3