Deleted Added
full compact
af_atalk.c (166956) af_atalk.c (194799)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
32 "$FreeBSD: head/sbin/ifconfig/af_atalk.c 166956 2007-02-24 23:55:46Z sam $";
32 "$FreeBSD: head/sbin/ifconfig/af_atalk.c 194799 2009-06-23 23:49:52Z delphij $";
33#endif /* not lint */
34
35#include <sys/types.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <netatalk/at.h>

--- 127 unchanged lines hidden (view full) ---

168 .af_ridreq = &at_addreq,
169 .af_addreq = &at_addreq,
170};
171
172static __constructor void
173atalk_ctor(void)
174{
175#define N(a) (sizeof(a) / sizeof(a[0]))
33#endif /* not lint */
34
35#include <sys/types.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <netatalk/at.h>

--- 127 unchanged lines hidden (view full) ---

168 .af_ridreq = &at_addreq,
169 .af_addreq = &at_addreq,
170};
171
172static __constructor void
173atalk_ctor(void)
174{
175#define N(a) (sizeof(a) / sizeof(a[0]))
176 int i;
176 size_t i;
177
178 for (i = 0; i < N(atalk_cmds); i++)
179 cmd_register(&atalk_cmds[i]);
180 af_register(&af_atalk);
181#undef N
182}
177
178 for (i = 0; i < N(atalk_cmds); i++)
179 cmd_register(&atalk_cmds[i]);
180 af_register(&af_atalk);
181#undef N
182}