mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-21 15:21:05 -05:00
Fixup signed/unsigned comparison warnings on OSX in getentropy_osx.c
git-svn-id: file:///svn/unbound/trunk@3163 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
89b915b4e1
commit
b9af2fa48d
1 changed files with 3 additions and 3 deletions
|
|
@ -210,7 +210,7 @@ getentropy_fallback(void *buf, size_t len)
|
||||||
int ipmib[] = { CTL_NET, AF_INET, IPPROTO_IP, IPCTL_STATS };
|
int ipmib[] = { CTL_NET, AF_INET, IPPROTO_IP, IPCTL_STATS };
|
||||||
int kmib[] = { CTL_KERN, KERN_USRSTACK };
|
int kmib[] = { CTL_KERN, KERN_USRSTACK };
|
||||||
int hwmib[] = { CTL_HW, HW_USERMEM };
|
int hwmib[] = { CTL_HW, HW_USERMEM };
|
||||||
int save_errno = errno, e, m, pgs = getpagesize(), faster = 0, repeat;
|
int save_errno = errno, e, pgs = getpagesize(), faster = 0, repeat;
|
||||||
uint8_t results[SHA512_DIGEST_LENGTH];
|
uint8_t results[SHA512_DIGEST_LENGTH];
|
||||||
struct tcpstat tcpstat;
|
struct tcpstat tcpstat;
|
||||||
struct udpstat udpstat;
|
struct udpstat udpstat;
|
||||||
|
|
@ -227,7 +227,7 @@ getentropy_fallback(void *buf, size_t len)
|
||||||
static pid_t lastpid;
|
static pid_t lastpid;
|
||||||
void * addr;
|
void * addr;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
size_t i;
|
size_t i, m;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
|
|
@ -277,7 +277,7 @@ getentropy_fallback(void *buf, size_t len)
|
||||||
HX((pid = getsid(pid)) == -1, pid);
|
HX((pid = getsid(pid)) == -1, pid);
|
||||||
HX((pid = getppid()) == -1, pid);
|
HX((pid = getppid()) == -1, pid);
|
||||||
HX((pid = getpgid(0)) == -1, pid);
|
HX((pid = getpgid(0)) == -1, pid);
|
||||||
HX((m = getpriority(0, 0)) == -1, m);
|
HX((e = getpriority(0, 0)) == -1, e);
|
||||||
|
|
||||||
if (!faster) {
|
if (!faster) {
|
||||||
ts.tv_sec = 0;
|
ts.tv_sec = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue