Changeset 0b9be9f in rtems-libbsd


Ignore:
Timestamp:
03/11/19 08:32:53 (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
24631e2
Parents:
d315955
git-author:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:32:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:37:06)
Message:

tcpdump: Remove superfluous static variable

File:
1 edited

Legend:

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

    rd315955 r0b9be9f  
    636636   if (attr_type[attr_code].siz_subtypes)
    637637   {
    638       static const char **table;
    639638      uint32_t data_value;
    640       table = attr_type[attr_code].subtypes;
    641639
    642640      if ( (attr_code == TUNNEL_TYPE) || (attr_code == TUNNEL_MEDIUM) )
     
    656654            attr_type[attr_code].first_subtype) &&
    657655           data_value >= attr_type[attr_code].first_subtype )
    658          ND_PRINT((ndo, "%s", table[data_value]));
     656         ND_PRINT((ndo, "%s", attr_type[attr_code].subtypes[data_value]));
    659657      else
    660658         ND_PRINT((ndo, "#%u", data_value));
Note: See TracChangeset for help on using the changeset viewer.