git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d8a7290
)
Move free_xbuf() into ifuncs.h.
author
Wayne Davison
<wayned@samba.org>
Sat, 24 Oct 2009 05:55:06 +0000
(22:55 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 24 Oct 2009 05:55:06 +0000
(22:55 -0700)
ifuncs.h
patch
|
blob
|
history
io.c
patch
|
blob
|
history
diff --git
a/ifuncs.h
b/ifuncs.h
index 8c128d58c8b815720ab83d982964ba977c3aeeee..656597ec90f2fa781b0d385f092b44044fc7875c 100644
(file)
--- a/
ifuncs.h
+++ b/
ifuncs.h
@@
-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)
{
diff --git
a/io.c
b/io.c
index 3ece9c3bbca353070e60ff9ecc7e1f179d3ff992..611b893596a1b2b52712804ddc23ae723871d4c7 100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1153,13
+1153,6
@@
int io_start_buffering_in(int f_in)
return 1;
}
-static void free_xbuf(xbuf *x)
-{
- if (x->buf)
- free(x->buf);
- memset(x, 0, sizeof (xbuf));
-}
-
void io_end_buffering_in(BOOL free_buffers)
{
if (DEBUG_GTE(IO, 2)) {