0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

unsgined char -> byte

This commit is contained in:
Pavel Tvrdík 2015-05-19 08:14:04 +02:00 committed by Ondrej Zajicek
parent 398f922531
commit e348ef01b4
4 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args)
if (!(flags & LEFT))
while (--field_width > 0)
*str++ = ' ';
*str++ = (unsigned char) va_arg(args, int);
*str++ = (byte) va_arg(args, int);
while (--field_width > 0)
*str++ = ' ';
continue;

View File

@ -320,7 +320,7 @@ struct mpnh {
ip_addr gw; /* Next hop */
struct iface *iface; /* Outgoing interface */
struct mpnh *next;
unsigned char weight;
byte weight;
};
struct rte_src {

View File

@ -43,7 +43,7 @@ unresolved_vlink(ort *ort)
}
static inline struct mpnh *
new_nexthop(struct ospf_proto *p, ip_addr gw, struct iface *iface, unsigned char weight)
new_nexthop(struct ospf_proto *p, ip_addr gw, struct iface *iface, byte weight)
{
struct mpnh *nh = lp_alloc(p->nhpool, sizeof(struct mpnh));
nh->gw = gw;

View File

@ -130,7 +130,7 @@ static inline void
sk_process_cmsg4_ttl(sock *s, struct cmsghdr *cm)
{
if (cm->cmsg_type == IP_RECVTTL)
s->rcv_ttl = * (unsigned char *) CMSG_DATA(cm);
s->rcv_ttl = * (byte *) CMSG_DATA(cm);
}
static inline void