Deleted Added
full compact
carp.c (281143) carp.c (288305)
1/* $FreeBSD: head/sbin/ifconfig/carp.c 281143 2015-04-06 09:42:23Z glebius $ */
1/* $FreeBSD: head/sbin/ifconfig/carp.c 288305 2015-09-27 07:51:18Z ngie $ */
2/* from $OpenBSD: ifconfig.c,v 1.82 2003/10/19 05:43:35 mcbride Exp $ */
3
4/*
5 * Copyright (c) 2002 Michael Shalayeff. All rights reserved.
6 * Copyright (c) 2003 Ryan McBride. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

212 .af_name = "af_carp",
213 .af_af = AF_UNSPEC,
214 .af_other_status = carp_status,
215};
216
217static __constructor void
218carp_ctor(void)
219{
2/* from $OpenBSD: ifconfig.c,v 1.82 2003/10/19 05:43:35 mcbride Exp $ */
3
4/*
5 * Copyright (c) 2002 Michael Shalayeff. All rights reserved.
6 * Copyright (c) 2003 Ryan McBride. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

212 .af_name = "af_carp",
213 .af_af = AF_UNSPEC,
214 .af_other_status = carp_status,
215};
216
217static __constructor void
218carp_ctor(void)
219{
220#define N(a) (sizeof(a) / sizeof(a[0]))
221 int i;
222
220 int i;
221
223 for (i = 0; i < N(carp_cmds); i++)
222 for (i = 0; i < nitems(carp_cmds); i++)
224 cmd_register(&carp_cmds[i]);
225 af_register(&af_carp);
223 cmd_register(&carp_cmds[i]);
224 af_register(&af_carp);
226#undef N
227}
225}