From a6ecea514f1b572bba3ee616ca097d5e665442f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Tue, 17 Jan 2017 00:11:51 +0100 Subject: [PATCH] Restrict will no longer apply to `addToList' --- src/list.c | 2 +- src/list.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/list.c b/src/list.c index 11482e9..d614c27 100644 --- a/src/list.c +++ b/src/list.c @@ -21,7 +21,7 @@ void deInitList(List *restrict l) { free(l->list); } -int addToList(List *restrict l, mpz_t n) { +int addToList(List *l, mpz_t n) { if(l->end == l->size) { l->size += BLOCK_SIZE; void *tmp = realloc(l->list, sizeof(mpz_t) * l->size); diff --git a/src/list.h b/src/list.h index e38a680..b8fa1a6 100644 --- a/src/list.h +++ b/src/list.h @@ -40,4 +40,4 @@ void deInitList(List *restrict l); * @param[in] n variable to be appended to the list. * @returns Returns 0 if successful and 1 if failed. */ -int addToList(List *restrict l, mpz_t n); +int addToList(List *l, mpz_t n);