Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/strbuf-add-real-path'
[gitweb.git]
/
strbuf.h
diff --git
a/strbuf.h
b/strbuf.h
index ab12d3916ce051248e2945ff01a47110c2459fe0..cf8e4bf532a63cf5133dcdf011968e9ac8b24d39 100644
(file)
--- a/
strbuf.h
+++ b/
strbuf.h
@@
-109,9
+109,7
@@
extern void strbuf_attach(struct strbuf *, void *, size_t, size_t);
*/
static inline void strbuf_swap(struct strbuf *a, struct strbuf *b)
{
- struct strbuf tmp = *a;
- *a = *b;
- *b = tmp;
+ SWAP(*a, *b);
}