From: Jérôme Benoit Date: Wed, 1 Mar 2017 22:16:57 +0000 (+0100) Subject: Remove an unused function parameter. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6eb444361c150978f48c0ede53c828576b4ea161;p=Algorithmic_C.git Remove an unused function parameter. Signed-off-by: Jérôme Benoit --- diff --git a/TP2/exo1/exo1.c b/TP2/exo1/exo1.c index 27ff6b9..25d6c99 100644 --- a/TP2/exo1/exo1.c +++ b/TP2/exo1/exo1.c @@ -1,6 +1,6 @@ #include -void permuter (int T[], int n, int i1, int i2) { +void permuter (int T[], int i1, int i2) { int tmp = T[i1]; T[i1] = T[i2]; T[i2] = tmp; @@ -20,7 +20,7 @@ void SelecEch(int T[], int n) { int imin, d = 0; while (d < n-1) { imin = i_min(T, n, d); - permuter(T, n, d, imin); + permuter(T, d, imin); d++; } }