From: 0xAX <0xAX@users.noreply.github.com> Date: Sun, 26 Jun 2016 10:37:00 +0000 (+0300) Subject: basic/strv: use SWAP_TWO() macro (#3602) X-Git-Tag: v231~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a3134b2b78b4ec310cd3f7b38fd0c9e09254aa8;p=platform%2Fupstream%2Fsystemd.git basic/strv: use SWAP_TWO() macro (#3602) --- diff --git a/src/basic/strv.c b/src/basic/strv.c index 97a96e5..578a9c1 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;