]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
unsgined char -> byte
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 19 May 2015 06:14:04 +0000 (08:14 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 8 Jun 2015 00:24:08 +0000 (02:24 +0200)
lib/printf.c
nest/route.h
proto/ospf/rt.c
sysdep/bsd/sysio.h

index 3eb988fa7a1fec7902b8658977552dadeada60c5..a1c3612954dd4052a94771fcea9f95a955a9b547 100644 (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;
index 87f10ae3776cb32b9b24ac32cd36a0cf2db4c47c..2e6bf74110b48dd2a519d37373eb5a92056c885d 100644 (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 {
index 74d10c7b414123c812341d7490ccab6c574f2e19..e74bcae621e595ef9161ce3feaedc915bc314f0c 100644 (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;
index df5e02367697998d003ed6ebda2cb694300ae277..c82d7a1e560d8c1941cd8b49a892380525866b4a 100644 (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