1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

unsigned [int] -> uint

This commit is contained in:
Pavel Tvrdík
2015-05-19 08:53:34 +02:00
committed by Ondrej Zajicek
parent e348ef01b4
commit ae80a2de95
32 changed files with 133 additions and 133 deletions

View File

@@ -181,7 +181,7 @@ struct ks_msg
#define GETADDR(p, F) \
bzero(p, sizeof(*p));\
if ((addrs & (F)) && ((struct sockaddr *)body)->sa_len) {\
unsigned int l = ROUNDUP(((struct sockaddr *)body)->sa_len);\
uint l = ROUNDUP(((struct sockaddr *)body)->sa_len);\
memcpy(p, body, (l > sizeof(*p) ? sizeof(*p) : l));\
body += l;}
@@ -537,7 +537,7 @@ krt_read_ifinfo(struct ks_msg *msg, int scan)
struct if_msghdr *ifm = (struct if_msghdr *)&msg->rtm;
void *body = (void *)(ifm + 1);
struct sockaddr_dl *dl = NULL;
unsigned int i;
uint i;
struct iface *iface = NULL, f = {};
int fl = ifm->ifm_flags;
int nlen = 0;

View File

@@ -50,7 +50,7 @@ struct nl_sock
u32 seq;
byte *rx_buffer; /* Receive buffer */
struct nlmsghdr *last_hdr; /* Recently received packet */
unsigned int last_size;
uint last_size;
};
#define NL_RX_SIZE 8192
@@ -443,7 +443,7 @@ nl_parse_link(struct nlmsghdr *h, int scan)
struct iface *ifi;
char *name;
u32 mtu;
unsigned int fl;
uint fl;
if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(IFLA_RTA(i), a, sizeof(a)))
return;
@@ -1088,7 +1088,7 @@ nl_async_hook(sock *sk, int size UNUSED)
struct msghdr m = { (struct sockaddr *) &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };
struct nlmsghdr *h;
int x;
unsigned int len;
uint len;
x = recvmsg(sk->fd, &m, 0);
if (x < 0)

View File

@@ -155,7 +155,7 @@ read_iproute_table(char *file, char *prefix, int max)
static char *config_name = PATH_CONFIG_FILE;
static int
cf_read(byte *dest, unsigned int len, int fd)
cf_read(byte *dest, uint len, int fd)
{
int l = read(fd, dest, len);
if (l < 0)

View File

@@ -119,7 +119,7 @@ void log_switch(int debug, list *l, char *); /* Use l=NULL for initial switch */
struct log_config {
node n;
unsigned int mask; /* Classes to log */
uint mask; /* Classes to log */
void *fh; /* FILE to log to, NULL=syslog */
int terminal_flag;
};