Ignore:
Timestamp:
04/02/08 16:32:01 (13 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
dd1217b
Parents:
007fb43
Message:

Some fixes to deal with errors and warnings that appear with old gcc - e.g. 2.95

  • Added 'static' to functions that are only used internally
  • Moved variable declarations to the start of the code block, before any actual code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2054.c

    r622dd4d rf5d654e  
    2020 * attempt to decode.
    2121 */
    22 char *format_hrd(struct arphdr *arp, char *hrd) {
     22static char *format_hrd(struct arphdr *arp, char *hrd) {
    2323        static char buffer[1024] = {0,};
    2424        int i;
     
    5050 * attempt to decode.
    5151 */
    52 char *format_pro(struct arphdr *arp, char *pro) {
     52static char *format_pro(struct arphdr *arp, char *pro) {
    5353        static char buffer[1024] = {0,};
    5454        int i;
Note: See TracChangeset for help on using the changeset viewer.