summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-04-01 15:25:01 +0000
committerrwatson <rwatson@FreeBSD.org>2006-04-01 15:25:01 +0000
commit68ff3be0b395955e8feac72262824b90a155a710 (patch)
tree3609515ef39e3434fdd6f469dbb7ffb40eacc983 /sys/compat/svr4
parent8622e776f910513e077d822efc579cdb9ba09316 (diff)
downloadFreeBSD-src-68ff3be0b395955e8feac72262824b90a155a710.zip
FreeBSD-src-68ff3be0b395955e8feac72262824b90a155a710.tar.gz
Annotate uses of fgetsock() with indications that they should rely
on their existing file descriptor references to sockets, rather than use fgetsock() to retrieve a direct socket reference. MFC after: 3 months
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r--sys/compat/svr4/svr4_stream.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c
index bd6fa5a..35d7972 100644
--- a/sys/compat/svr4/svr4_stream.c
+++ b/sys/compat/svr4/svr4_stream.c
@@ -167,6 +167,10 @@ svr4_sendit(td, s, mp, flags)
struct uio *ktruio = NULL;
#endif
+ /*
+ * XXXRW: Instead of using fgetsock(), just rely on the file
+ * descriptor reference.
+ */
if ((error = fgetsock(td, s, &so, NULL)) != 0)
return (error);
@@ -263,6 +267,10 @@ svr4_recvit(td, s, mp, namelenp)
struct uio *ktruio = NULL;
#endif
+ /*
+ * XXXRW: Instead of using fgetsock(), just rely on the file
+ * descriptor reference.
+ */
if ((error = fgetsock(td, s, &so, NULL)) != 0)
return (error);
OpenPOWER on IntegriCloud