summaryrefslogtreecommitdiffstats
path: root/sys/dev/streams
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:33:18 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:33:18 +0000
commite582dcfe26602039ca7f42eaa404338237720a1a (patch)
tree4c828d39dd1e87da3bbe23be42fecee274ca83e6 /sys/dev/streams
parent2048912526464c943ca01eb049aa45a6f63814b6 (diff)
downloadFreeBSD-src-e582dcfe26602039ca7f42eaa404338237720a1a.zip
FreeBSD-src-e582dcfe26602039ca7f42eaa404338237720a1a.tar.gz
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
Diffstat (limited to 'sys/dev/streams')
-rw-r--r--sys/dev/streams/streams.c11
1 files changed, 1 insertions, 10 deletions
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;
OpenPOWER on IntegriCloud