Changeset d3d6b08 in rtems-libbsd


Ignore:
Timestamp:
Oct 31, 2013, 9:11:03 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
e24c90c
Parents:
42c9944
git-author:
Sebastian Huber <sebastian.huber@…> (10/31/13 09:11:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:53)
Message:

PING(8): Add const qualifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sbin/ping/ping.c

    r42c9944 rd3d6b08  
    158158 */
    159159#define MAX_DUP_CHK     (8 * 128)
    160 static int mx_dup_ck = MAX_DUP_CHK;
     160static const int mx_dup_ck = MAX_DUP_CHK;
    161161static char rcvd_tbl[MAX_DUP_CHK / 8];
    162162
     
    166166static int s;                           /* socket file descriptor */
    167167static u_char outpackhdr[IP_MAXPACKET], *outpack;
    168 static char BBELL = '\a';               /* characters written for MISSED and AUDIBLE */
    169 static char BSPACE = '\b';              /* characters written for flood */
    170 static char DOT = '.';
     168static const char BBELL = '\a';         /* characters written for MISSED and AUDIBLE */
     169static const char BSPACE = '\b';                /* characters written for flood */
     170static const char DOT = '.';
    171171static char *hostname;
    172172static char *shostname;
     
    231231        rtems_bsd_program_lock();
    232232
    233         BBELL = '\a';
    234         BSPACE = '\b';
    235         DOT = '.';
    236233        icmp_type = ICMP_ECHO;
    237234        icmp_type_rsp = ICMP_ECHOREPLY;
Note: See TracChangeset for help on using the changeset viewer.