Changeset 24631e2 in rtems-libbsd for freebsd/contrib/tcpdump/print-smb.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/print-smb.c

    r0b9be9f r24631e2  
    116116               const u_char *param, const u_char *data, int pcnt, int dcnt)
    117117{
     118#ifdef __rtems__
     119        __section(".rtemsrwset.bsd_prog_tcpdump.content")
     120#endif /* __rtems__ */
    118121    static int level = 0;
    119122    const char *fmt="";
     
    180183{
    181184    u_int bcc;
     185#ifdef __rtems__
     186        __section(".rtemsrwset.bsd_prog_tcpdump.content")
     187#endif /* __rtems__ */
    182188    static const struct smbfnsint *fn = &trans2_fns[0];
    183189    const u_char *data, *param;
Note: See TracChangeset for help on using the changeset viewer.