diff options
author | 0xAX <0xAX@users.noreply.github.com> | 2016-06-26 13:37:00 +0300 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-06-26 12:37:00 +0200 |
commit | 8a3134b2b78b4ec310cd3f7b38fd0c9e09254aa8 (patch) | |
tree | 10252b0f481f37972a4713664732b853445bb61b /src/basic/strv.c | |
parent | 0c6aeb4609f619328b9dcf8d8d815bd06e412ac5 (diff) |
basic/strv: use SWAP_TWO() macro (#3602)
Diffstat (limited to 'src/basic/strv.c')
-rw-r--r-- | src/basic/strv.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c index 97a96e5762..578a9c1005 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -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; |