summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/inet.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-03 14:58:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-03 14:58:24 +0000
commit44fb9a7e8707e33c715d2281b745640f6b6e3ba8 (patch)
tree550f93484014fc65201ee49e64ef3b741e72ad0a /usr.sbin/mrouted/inet.c
parentd64becd498d0922ed40238a8e27d33afde224d8f (diff)
ansi, from cloder
Diffstat (limited to 'usr.sbin/mrouted/inet.c')
-rw-r--r--usr.sbin/mrouted/inet.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/usr.sbin/mrouted/inet.c b/usr.sbin/mrouted/inet.c
index c223bc957de..2b11d43a1c5 100644
--- a/usr.sbin/mrouted/inet.c
+++ b/usr.sbin/mrouted/inet.c
@@ -28,8 +28,7 @@ char s4[19];
* {subnet,-1}.)
*/
int
-inet_valid_host(naddr)
- u_int32_t naddr;
+inet_valid_host(u_int32_t naddr)
{
register u_int32_t addr;
@@ -46,8 +45,7 @@ inet_valid_host(naddr)
* a series of 0's with no discontiguous 1's.
*/
int
-inet_valid_mask(mask)
- u_int32_t mask;
+inet_valid_mask(u_int32_t mask)
{
if (~(((mask & -mask) - 1) | mask) != 0) {
/* Mask is not contiguous */
@@ -67,8 +65,7 @@ inet_valid_mask(mask)
* are all 0.
*/
int
-inet_valid_subnet(nsubnet, nmask)
- u_int32_t nsubnet, nmask;
+inet_valid_subnet(u_int32_t nsubnet, u_int32_t nmask)
{
register u_int32_t subnet, mask;
@@ -106,9 +103,7 @@ inet_valid_subnet(nsubnet, nmask)
* Convert an IP address in u_long (network) format into a printable string.
*/
char *
-inet_fmt(addr, s)
- u_int32_t addr;
- char *s;
+inet_fmt(u_int32_t addr, char *s)
{
register u_char *a;
@@ -123,9 +118,7 @@ inet_fmt(addr, s)
* string including the netmask as a number of bits.
*/
char *
-inet_fmts(addr, mask, s)
- u_int32_t addr, mask;
- char *s;
+inet_fmts(u_int32_t addr, u_int32_t mask, char *s)
{
register u_char *a, *m;
int bits;
@@ -154,8 +147,7 @@ inet_fmts(addr, mask, s)
* with "255.255.255.255".)
*/
u_int32_t
-inet_parse(s)
- char *s;
+inet_parse(char *s)
{
u_int32_t a = 0;
u_int a0, a1, a2, a3;
@@ -193,9 +185,7 @@ inet_parse(s)
*
*/
int
-inet_cksum(addr, len)
- u_int16_t *addr;
- u_int len;
+inet_cksum(u_int16_t *addr, u_int len)
{
register int nleft = (int)len;
register u_int16_t *w = addr;