diff options
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_osfp.c')
-rw-r--r-- | freebsd/contrib/pf/pfctl/pfctl_osfp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_osfp.c b/freebsd/contrib/pf/pfctl/pfctl_osfp.c index 6b72dd3d..81204d82 100644 --- a/freebsd/contrib/pf/pfctl/pfctl_osfp.c +++ b/freebsd/contrib/pf/pfctl/pfctl_osfp.c @@ -1010,7 +1010,18 @@ get_field(char **line, size_t *len, int *fieldlen) const char * print_ioctl(struct pf_osfp_ioctl *fp) { +#ifndef __rtems__ static char buf[1024]; +#else /* __rtems__ */ + /* Note on RTEMS port: + * This buffer is static. So normally it would have to be initialized to + * zero every time the program starts. But in this special case it is + * set to zero inside the function. Therefore it is not necessary to + * move it. If it would be moved out of the function, the name would + * have to be changed. This would be a lot of change in this function! + */ + static char buf[1024]; +#endif /* __rtems__ */ char tmp[32]; int i, opt; |