diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-18 16:30:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:49 +0100 |
commit | 60618d533258db42d17323d66550ea333cde1369 (patch) | |
tree | 7900d2dea7e291bc047b3d27c5738d0d0aa88472 /freebsd/sbin/ifconfig/ifclone.c | |
parent | IFCONFIG(8): Fix isdigit() and isprint() usage (diff) | |
download | rtems-libbsd-60618d533258db42d17323d66550ea333cde1369.tar.bz2 |
IFCONFIG(8): Initialize global variables in ctors
Diffstat (limited to 'freebsd/sbin/ifconfig/ifclone.c')
-rw-r--r-- | freebsd/sbin/ifconfig/ifclone.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifclone.c b/freebsd/sbin/ifconfig/ifclone.c index 3cfeee25..84ec61bd 100644 --- a/freebsd/sbin/ifconfig/ifclone.c +++ b/freebsd/sbin/ifconfig/ifclone.c @@ -181,9 +181,16 @@ clone_Copt_cb(const char *optarg __unused) } static struct option clone_Copt = { .opt = "C", .opt_usage = "[-C]", .cb = clone_Copt_cb }; +#ifndef __rtems__ static __constructor void +#else /* __rtems__ */ +void +#endif /* __rtems__ */ clone_ctor(void) { +#ifdef __rtems__ + SLIST_INIT(&clone_defcbh); +#endif /* __rtems__ */ #define N(a) (sizeof(a) / sizeof(a[0])) size_t i; |