Clean code

This commit is contained in:
daniele 2019-09-19 15:19:54 +02:00
parent f165876a20
commit 0f038c1abc
Signed by: fuxino
GPG Key ID: 6FE25B4A3EE16FDA
13 changed files with 23 additions and 20 deletions

View File

@ -15,7 +15,10 @@ int main(int argc, char **argv)
clock_gettime(CLOCK_MONOTONIC, &start); clock_gettime(CLOCK_MONOTONIC, &start);
primes = sieve(N); if(primes = sieve(N) == NULL)
{
fprintf(stderr, "Error! Sieve function returned NULL\n");
return 1;
for(i = 0; i < N; i++) for(i = 0; i < N; i++)
{ {