diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-03-11 09:33:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-03-11 09:37:36 +0100 |
commit | 24631e2263e341a5228d8444d6e557d8305c0c9e (patch) | |
tree | 04bb81dccd8a8f2847f91f2b17b026ed34325e20 /freebsd/contrib/tcpdump/print-smb.c | |
parent | tcpdump: Remove superfluous static variable (diff) | |
download | rtems-libbsd-24631e2263e341a5228d8444d6e557d8305c0c9e.tar.bz2 |
tcpdump: Move static variables to special section
This fixes some issues if tcpdump is invoked a second time.
Diffstat (limited to 'freebsd/contrib/tcpdump/print-smb.c')
-rw-r--r-- | freebsd/contrib/tcpdump/print-smb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/contrib/tcpdump/print-smb.c b/freebsd/contrib/tcpdump/print-smb.c index 2ce8dc37..72a42b26 100644 --- a/freebsd/contrib/tcpdump/print-smb.c +++ b/freebsd/contrib/tcpdump/print-smb.c @@ -115,6 +115,9 @@ static void trans2_qfsinfo(netdissect_options *ndo, const u_char *param, const u_char *data, int pcnt, int dcnt) { +#ifdef __rtems__ + __section(".rtemsrwset.bsd_prog_tcpdump.content") +#endif /* __rtems__ */ static int level = 0; const char *fmt=""; @@ -179,6 +182,9 @@ print_trans2(netdissect_options *ndo, const u_char *words, const u_char *dat, const u_char *buf, const u_char *maxbuf) { u_int bcc; +#ifdef __rtems__ + __section(".rtemsrwset.bsd_prog_tcpdump.content") +#endif /* __rtems__ */ static const struct smbfnsint *fn = &trans2_fns[0]; const u_char *data, *param; const u_char *w = words + 1; |