Deleted Added
full compact
ifclone.c (189864) ifclone.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/ifclone.c 189864 2009-03-15 22:33:18Z jamie $";
32 "$FreeBSD: head/sbin/ifconfig/ifclone.c 194799 2009-06-23 23:49:52Z delphij $";
33#endif /* not lint */
34
35#include <sys/queue.h>
36#include <sys/types.h>
37#include <sys/ioctl.h>
38#include <sys/socket.h>
39#include <net/if.h>
40

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

174};
175
176static void
177clone_Copt_cb(const char *optarg __unused)
178{
179 list_cloners();
180 exit(0);
181}
33#endif /* not lint */
34
35#include <sys/queue.h>
36#include <sys/types.h>
37#include <sys/ioctl.h>
38#include <sys/socket.h>
39#include <net/if.h>
40

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

174};
175
176static void
177clone_Copt_cb(const char *optarg __unused)
178{
179 list_cloners();
180 exit(0);
181}
182static struct option clone_Copt = { "C", "[-C]", clone_Copt_cb };
182static struct option clone_Copt = { .opt = "C", .opt_usage = "[-C]", .cb = clone_Copt_cb };
183
184static __constructor void
185clone_ctor(void)
186{
187#define N(a) (sizeof(a) / sizeof(a[0]))
183
184static __constructor void
185clone_ctor(void)
186{
187#define N(a) (sizeof(a) / sizeof(a[0]))
188 int i;
188 size_t i;
189
190 for (i = 0; i < N(clone_cmds); i++)
191 cmd_register(&clone_cmds[i]);
192 opt_register(&clone_Copt);
193#undef N
194}
189
190 for (i = 0; i < N(clone_cmds); i++)
191 cmd_register(&clone_cmds[i]);
192 opt_register(&clone_Copt);
193#undef N
194}