From ba8488e5c6979a346c7a364affd31512142bac3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 13 Mar 2017 15:06:35 +0100 Subject: [PATCH] TP 11 exo1: deconstify where appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP_13/exo1/src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TP_13/exo1/src/main.c b/TP_13/exo1/src/main.c index 9f23749..41facd6 100644 --- a/TP_13/exo1/src/main.c +++ b/TP_13/exo1/src/main.c @@ -7,19 +7,19 @@ int main() { int* tab = NULL; - const unsigned tab_size = 11; + unsigned tab_size = 11; tab = create_tab(tab, tab_size); printf("%d\n", tab_size); display_array(tab, tab_size); - const unsigned tab_new_size = 20; - tab = resize_tab(tab, tab_new_size); + tab_size = 20; + tab = resize_tab(tab, tab_size); - printf("%d\n", tab_new_size); + printf("%d\n", tab_size); - display_array(tab, tab_new_size); + display_array(tab, tab_size); free_tab(tab); exit(EXIT_SUCCESS); -- 2.34.1