summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-16 20:41:08 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-16 20:41:08 +0000
commit968987d7f94c975368bcdedb3eb3cd969eecbe80 (patch)
treef064dafc08d0d3a354a87f16bf42ec69b04babb3 /sys/kern/uipc_sockbuf.c
parentb024dc211e65f99728985fd040df4f3ebac72923 (diff)
downloadFreeBSD-src-968987d7f94c975368bcdedb3eb3cd969eecbe80.zip
FreeBSD-src-968987d7f94c975368bcdedb3eb3cd969eecbe80.tar.gz
Generally migrate to ANSI function headers, and remove 'register' use.
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index a35a2c6..25d9200 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -349,7 +349,6 @@ sbdestroy(struct sockbuf *sb, struct socket *so)
sbrelease_internal(sb, so);
}
-
/*
* Routines to add and remove data from an mbuf queue.
*
@@ -902,7 +901,6 @@ sbdrop(struct sockbuf *sb, int len)
SOCKBUF_UNLOCK(sb);
}
-
/*
* Maintain a pointer and offset pair into the socket buffer mbuf chain to
* avoid traversal of the entire socket buffer for larger offsets.
@@ -981,12 +979,9 @@ sbdroprecord(struct sockbuf *sb)
* type for presentation on a socket buffer.
*/
struct mbuf *
-sbcreatecontrol(p, size, type, level)
- caddr_t p;
- register int size;
- int type, level;
+sbcreatecontrol(caddr_t p, int size, int type, int level)
{
- register struct cmsghdr *cp;
+ struct cmsghdr *cp;
struct mbuf *m;
if (CMSG_SPACE((u_int)size) > MCLBYTES)
@@ -1020,6 +1015,7 @@ sbcreatecontrol(p, size, type, level)
void
sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb)
{
+
xsb->sb_cc = sb->sb_cc;
xsb->sb_hiwat = sb->sb_hiwat;
xsb->sb_mbcnt = sb->sb_mbcnt;
OpenPOWER on IntegriCloud