diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-01-12 13:18:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-01-12 13:18:08 +0000 |
commit | 751716e05082eecdf3a7767ec11dabf0062f9776 (patch) | |
tree | d0a01290f16dfbc5c03f21f3e84d7836d7de5066 /sys/netatalk/at_proto.c | |
parent | ccc086813d94233b2bd97bad22ddd8017def360d (diff) | |
download | FreeBSD-src-751716e05082eecdf3a7767ec11dabf0062f9776.zip FreeBSD-src-751716e05082eecdf3a7767ec11dabf0062f9776.tar.gz |
Cleanup of netatalk atalk layer includes, protocol definitions, and
routing:
- style(9) cleanup -- white space, braces, etc.
- Make include guards consistent with our more general naming
convention.
- Rearrange and complete forward structure declarations in at_extern.h,
remove testing of guards of various other include files to protect
function declarations.
This leaves an ifdef _KERNEL in at_var.h, but from inspection it seems
likely that this file is not actually safe for inclusion in user space
still. However, since it's not included from within src/ so this does
not appear to be an issue (ifconfig, etc, have migrated to the generic
cross-protocol ioctls for address operations).
Diffstat (limited to 'sys/netatalk/at_proto.c')
-rw-r--r-- | sys/netatalk/at_proto.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sys/netatalk/at_proto.c b/sys/netatalk/at_proto.c index 19fbcff..39b0dd6 100644 --- a/sys/netatalk/at_proto.c +++ b/sys/netatalk/at_proto.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1990,1991 Regents of The University of Michigan. + * Copyright (c) 1990, 1991 Regents of The University of Michigan. * All Rights Reserved. * * Permission to use, copy, modify, and distribute this software and @@ -39,16 +39,16 @@ static struct domain atalkdomain; static struct protosw atalksw[] = { - { - /* Identifiers */ - .pr_type = SOCK_DGRAM, - .pr_domain = &atalkdomain, - .pr_protocol = ATPROTO_DDP, - .pr_flags = PR_ATOMIC|PR_ADDR, - .pr_output = ddp_output, - .pr_init = ddp_init, - .pr_usrreqs = &ddp_usrreqs - }, + { + /* Identifiers */ + .pr_type = SOCK_DGRAM, + .pr_domain = &atalkdomain, + .pr_protocol = ATPROTO_DDP, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_output = ddp_output, + .pr_init = ddp_init, + .pr_usrreqs = &ddp_usrreqs, + }, }; static struct domain atalkdomain = { @@ -58,8 +58,7 @@ static struct domain atalkdomain = { .dom_protoswNPROTOSW = &atalksw[sizeof(atalksw)/sizeof(atalksw[0])], .dom_rtattach = rn_inithead, .dom_rtoffset = offsetof(struct sockaddr_at, sat_addr) << 3, - .dom_maxrtkey = sizeof(struct sockaddr_at) + .dom_maxrtkey = sizeof(struct sockaddr_at), }; DOMAIN_SET(atalk); - |