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/ifpfsync.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/ifpfsync.c')
-rw-r--r-- | freebsd/sbin/ifconfig/ifpfsync.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifpfsync.c b/freebsd/sbin/ifconfig/ifpfsync.c index c0b86a9b..5b9a3c5e 100644 --- a/freebsd/sbin/ifconfig/ifpfsync.c +++ b/freebsd/sbin/ifconfig/ifpfsync.c @@ -202,7 +202,11 @@ static struct afswtch af_pfsync = { .af_other_status = pfsync_status, }; +#ifndef __rtems__ static __constructor void +#else /* __rtems__ */ +void +#endif /* __rtems__ */ pfsync_ctor(void) { #define N(a) (sizeof(a) / sizeof(a[0])) |