Revision 506fa1a7

View differences:

conf/cf-lex.l
77 77
%}
78 78

  
79 79
%option noyywrap
80
%option noinput
81
%option nounput
82
%option noreject
80 83

  
81 84
%x COMMENT CCOMM CLI
82 85

  
......
110 113
#endif
111 114
}
112 115

  
113
0x{DIGIT}+ {
116
0x{XIGIT}+ {
114 117
  char *e;
115 118
  long int l;
116 119
  errno = 0;
proto/bgp/packets.c
1050 1050
  { 2, 5, "Authentication failure" },
1051 1051
  { 2, 6, "Unacceptable hold time" },
1052 1052
  { 2, 7, "Required capability missing" }, /* [RFC3392] */
1053
  { 2, 8, "No supported AFI/SAFI" }, /* This error msg is nonstandard */
1053 1054
  { 3, 0, "Invalid UPDATE message" },
1054 1055
  { 3, 1, "Malformed attribute list" },
1055 1056
  { 3, 2, "Unrecognized well-known attribute" },
proto/ospf/lsalib.c
240 240
    c1 %= 255;
241 241
  }
242 242

  
243
  x = ((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
243
  x = (int)((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
244 244
  if (x <= 0)
245 245
    x += 255;
246 246
  y = 510 - c0 - x;
proto/ospf/lsalib.h
13 13
#ifdef CPU_BIG_ENDIAN
14 14
static inline void htonlsah(struct ospf_lsa_header *h, struct ospf_lsa_header *n) { *n = *h; };
15 15
static inline void ntohlsah(struct ospf_lsa_header *n, struct ospf_lsa_header *h) { *h = *n; };
16
static inline void htonlsab(void *h, void *n, u16 len) { memcpy(n, h, len); };
17
static inline void ntohlsab(void *n, void *h, u16 len) { memcpy(h, n, len); };
16
static inline void htonlsab(void *h, void *n, u16 len) { ASSERT(h != n); memcpy(n, h, len); };
17
static inline void ntohlsab(void *n, void *h, u16 len) { ASSERT(n != h); memcpy(h, n, len); };
18 18
static inline void htonlsab1(void *h, u16 len) { };
19 19
static inline void ntohlsab1(void *n, u16 len) { };
20 20
#else
tools/Rules.in
66 66
subdir: all.o
67 67

  
68 68
all.o: $(objs)
69
	$(LD) -r -o $@ $^
69
	$(CC) -nostdlib  -Wl,-r -o $@ $^
70 70

  
71 71
endif
72 72

  

Also available in: Unified diff