Changeset 24631e2 in rtems-libbsd for freebsd/contrib/tcpdump/util-print.c


Ignore:
Timestamp:
03/11/19 08:33:28 (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
32a41a1
Parents:
0b9be9f
git-author:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:33:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:37:36)
Message:

tcpdump: Move static variables to special section

This fixes some issues if tcpdump is invoked a second time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/tcpdump/util-print.c

    r0b9be9f r24631e2  
    324324        time_t Time;
    325325        char buf[TS_BUF_SIZE];
     326#ifdef __rtems__
     327        __section(".rtemsrwset.bsd_prog_tcpdump.content")
     328#endif /* __rtems__ */
    326329        static struct timeval tv_ref;
    327330        struct timeval tv_result;
     
    511514{
    512515        static char buf[4][TOKBUFSIZE];
     516#ifdef __rtems__
     517        __section(".rtemsrwset.bsd_prog_tcpdump.content")
     518#endif /* __rtems__ */
    513519        static int idx = 0;
    514520        char *ret;
Note: See TracChangeset for help on using the changeset viewer.