diff options
author | Wayne Davison <wayned@samba.org> | 2009-10-23 22:55:06 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-10-23 22:55:06 -0700 |
commit | a0a88e0ef39069bcd1a22623fb7b034c8a0bfb5a (patch) | |
tree | 78577791071b846f0227a33f1601dbea3bcbc19e /ifuncs.h | |
parent | d8a7290f8621b72139461ed6606cde31fa4d544f (diff) | |
download | android_external_rsync-a0a88e0ef39069bcd1a22623fb7b034c8a0bfb5a.tar.gz android_external_rsync-a0a88e0ef39069bcd1a22623fb7b034c8a0bfb5a.tar.bz2 android_external_rsync-a0a88e0ef39069bcd1a22623fb7b034c8a0bfb5a.zip |
Move free_xbuf() into ifuncs.h.
Diffstat (limited to 'ifuncs.h')
-rw-r--r-- | ifuncs.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -35,6 +35,14 @@ realloc_xbuf(xbuf *xb, size_t sz) xb->size = sz; } +static inline void +free_xbuf(xbuf *xb) +{ + if (xb->buf) + free(xb->buf); + memset(xb, 0, sizeof (xbuf)); +} + static inline int to_wire_mode(mode_t mode) { |