basic/strv: use SWAP_TWO() macro (#3602)

This commit is contained in:
0xAX 2016-06-26 13:37:00 +03:00 committed by Martin Pitt
parent 0c6aeb4609
commit 8a3134b2b7
1 changed files with 1 additions and 5 deletions

View File

@ -804,11 +804,7 @@ char **strv_reverse(char **l) {
return l;
for (i = 0; i < n / 2; i++) {
char *t;
t = l[i];
l[i] = l[n-1-i];
l[n-1-i] = t;
SWAP_TWO(l[i], l[n-1-i]);
}
return l;