aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2015-12-21 10:54:02 -0800
committerWayne Davison <wayned@samba.org>2015-12-21 10:54:02 -0800
commit9250e9ac23d73886f30d324d1642ca196dfc4a42 (patch)
tree852768bd780a7555d4f699bfa1475fb92f64daf2
parent3623d94fe7fe04ebf05e4adefcb127e552b39bb6 (diff)
downloadandroid_external_rsync-9250e9ac23d73886f30d324d1642ca196dfc4a42.tar.gz
android_external_rsync-9250e9ac23d73886f30d324d1642ca196dfc4a42.tar.bz2
android_external_rsync-9250e9ac23d73886f30d324d1642ca196dfc4a42.zip
Improve the comment a bit more.
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 3bece5ca..baee467c 100644
--- a/util.c
+++ b/util.c
@@ -1610,6 +1610,8 @@ int flist_ndx_pop(flist_ndx_list *lp)
* - if incr < 0 then increase the malloced size by -1 * incr
* - if incr >= 0 then either make the malloced size equal to "incr"
* or (if that's not large enough) double the malloced size
+ * After the size check, the list's count is incremented by 1 and a pointer
+ * to the "new" list item is returned.
*/
void *expand_item_list(item_list *lp, size_t item_size,
const char *desc, int incr)