Browse Source

remove unused variables getentropy for OS X

ok beck@
OPENBSD_5_6
bcook 10 years ago
parent
commit
a3816c6eb6
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/lib/libcrypto/arc4random/getentropy_osx.c
  2. +3
    -3
      src/lib/libcrypto/crypto/getentropy_osx.c

+ 3
- 3
src/lib/libcrypto/arc4random/getentropy_osx.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_osx.c,v 1.1 2014/07/08 10:45:35 beck Exp $ */
/* $OpenBSD: getentropy_osx.c,v 1.2 2014/07/09 13:23:15 bcook Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -153,7 +153,7 @@ getentropy_urandom(void *buf, size_t len)
{
struct stat st;
size_t i;
int fd, cnt, flags;
int fd, flags;
int save_errno = errno;
start:
@ -227,7 +227,7 @@ getentropy_fallback(void *buf, size_t len)
static pid_t lastpid;
void * addr;
pid_t pid;
size_t i, ii;
size_t i;
char *p;
pid = getpid();


+ 3
- 3
src/lib/libcrypto/crypto/getentropy_osx.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_osx.c,v 1.1 2014/07/08 10:45:35 beck Exp $ */
/* $OpenBSD: getentropy_osx.c,v 1.2 2014/07/09 13:23:15 bcook Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -153,7 +153,7 @@ getentropy_urandom(void *buf, size_t len)
{
struct stat st;
size_t i;
int fd, cnt, flags;
int fd, flags;
int save_errno = errno;
start:
@ -227,7 +227,7 @@ getentropy_fallback(void *buf, size_t len)
static pid_t lastpid;
void * addr;
pid_t pid;
size_t i, ii;
size_t i;
char *p;
pid = getpid();


Loading…
Cancel
Save