Fix gcc complaining about int to unsigned long conversion issues by
explictly marking as unsigned in RT_ROUNDUP2.
This commit is contained in:
parent
3adf4b3b3e
commit
996a7c47cf
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: route.h,v 1.110 2016/12/16 20:11:52 christos Exp $ */
|
/* $NetBSD: route.h,v 1.111 2016/12/19 11:17:00 roy Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1980, 1986, 1993
|
* Copyright (c) 1980, 1986, 1993
|
||||||
@ -286,7 +286,7 @@ struct rt_msghdr {
|
|||||||
#define RTAX_TAG 8 /* route tag */
|
#define RTAX_TAG 8 /* route tag */
|
||||||
#define RTAX_MAX 9 /* size of array to allocate */
|
#define RTAX_MAX 9 /* size of array to allocate */
|
||||||
|
|
||||||
#define RT_ROUNDUP2(a, n) ((a) > 0 ? (1 + (((a) - 1) | ((n) - 1))) : (n))
|
#define RT_ROUNDUP2(a, n) ((a) > 0 ? (1 + (((a) - 1U) | ((n) - 1))) : (n))
|
||||||
#define RT_ROUNDUP(a) RT_ROUNDUP2((a), sizeof(uint64_t))
|
#define RT_ROUNDUP(a) RT_ROUNDUP2((a), sizeof(uint64_t))
|
||||||
#define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))
|
#define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user