File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ init_protoidarray(void)
768
768
{
769
769
register int i ;
770
770
register struct protoidmem * tp ;
771
- struct protoidlist * pl ;
771
+ const struct protoidlist * pl ;
772
772
u_char protoid [5 ];
773
773
774
774
protoid [0 ] = 0 ;
@@ -817,7 +817,7 @@ static const struct etherlist {
817
817
static void
818
818
init_etherarray (void )
819
819
{
820
- register struct etherlist * el ;
820
+ register const struct etherlist * el ;
821
821
register struct enamemem * tp ;
822
822
#ifdef USE_ETHER_NTOHOST
823
823
char name [256 ];
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ static const char rcsid[] _U_ =
28
28
#include "interface.h"
29
29
#include "af.h"
30
30
31
- struct tok af_values [] = {
31
+ const struct tok af_values [] = {
32
32
{ 0 , "Reserved" },
33
33
{ AFNUM_INET , "IPv4" },
34
34
{ AFNUM_INET6 , "IPv6" },
@@ -50,7 +50,7 @@ struct tok af_values[] = {
50
50
{ 0 , NULL },
51
51
};
52
52
53
- struct tok bsd_af_values [] = {
53
+ const struct tok bsd_af_values [] = {
54
54
{ BSD_AFNUM_INET , "IPv4" },
55
55
{ BSD_AFNUM_NS , "NS" },
56
56
{ BSD_AFNUM_ISO , "ISO" },
Original file line number Diff line number Diff line change 17
17
* Original code by Hannes Gredler ([email protected] )
18
18
*/
19
19
20
- extern struct tok af_values [];
21
- extern struct tok bsd_af_values [];
20
+ extern const struct tok af_values [];
21
+ extern const struct tok bsd_af_values [];
22
22
23
23
/* RFC1700 address family numbers */
24
24
#define AFNUM_INET 1
You can’t perform that action at this time.
0 commit comments