Deleted Added
full compact
ifgre.c (181224) ifgre.c (194799)
1/*-
2 * Copyright (c) 2008 Andrew Thompson. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

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

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

20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef lint
27static const char rcsid[] =
28 "$FreeBSD: head/sbin/ifconfig/ifgre.c 181224 2008-08-03 03:36:12Z thompsa $";
28 "$FreeBSD: head/sbin/ifconfig/ifgre.c 194799 2009-06-23 23:49:52Z delphij $";
29#endif
30
31#include <sys/param.h>
32#include <sys/ioctl.h>
33#include <sys/socket.h>
34#include <sys/sockio.h>
35
36#include <stdlib.h>

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

84 .af_af = AF_UNSPEC,
85 .af_other_status = gre_status,
86};
87
88static __constructor void
89gre_ctor(void)
90{
91#define N(a) (sizeof(a) / sizeof(a[0]))
29#endif
30
31#include <sys/param.h>
32#include <sys/ioctl.h>
33#include <sys/socket.h>
34#include <sys/sockio.h>
35
36#include <stdlib.h>

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

84 .af_af = AF_UNSPEC,
85 .af_other_status = gre_status,
86};
87
88static __constructor void
89gre_ctor(void)
90{
91#define N(a) (sizeof(a) / sizeof(a[0]))
92 int i;
92 size_t i;
93
94 for (i = 0; i < N(gre_cmds); i++)
95 cmd_register(&gre_cmds[i]);
96 af_register(&af_gre);
97#undef N
98}
93
94 for (i = 0; i < N(gre_cmds); i++)
95 cmd_register(&gre_cmds[i]);
96 af_register(&af_gre);
97#undef N
98}