Skip to content
Snippets Groups Projects
Commit 5738fe88 authored by Jonathan Yong's avatar Jonathan Yong Committed by Jonathan Yong
Browse files

ssp.c (__guard_setup): Suppress unused variable warning.

2017-04-01  Jonathan Yong  <10walls@gmail.com>

	* ssp.c (__guard_setup): Suppress unused variable warning.

From-SVN: r246636
parent 97038d11
No related branches found
No related tags found
No related merge requests found
2017-04-01 Jonathan Yong <10walls@gmail.com>
* ssp.c (__guard_setup): Suppress unused variable warning.
2017-01-17 Jakub Jelinek <jakub@redhat.com>
PR other/79046
......
......@@ -72,7 +72,6 @@ static void __attribute__ ((constructor))
__guard_setup (void)
{
unsigned char *p;
int fd;
if (__stack_chk_guard != 0)
return;
......@@ -91,7 +90,7 @@ __guard_setup (void)
CryptReleaseContext(hprovider, 0);
}
#else
fd = open ("/dev/urandom", O_RDONLY);
int fd = open ("/dev/urandom", O_RDONLY);
if (fd != -1)
{
ssize_t size = read (fd, &__stack_chk_guard,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment