]> git.ipfire.org Git - thirdparty/kmod.git/commit
strbuf: do not calculate next step in size on all calls
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 17 Oct 2014 00:22:32 +0000 (21:22 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 17 Oct 2014 00:22:32 +0000 (21:22 -0300)
commit8863154e446d6b60ff6afd6572ce5d9c9651a59c
tree9174327b8397e4a5dc05521956b88122208dedae
parent405b8927fe36df633f70cbed74f1aab1fea0b947
strbuf: do not calculate next step in size on all calls

We only need to check if the new size is less or equal than the current
size. We don't really need to calculate the next step.
shared/strbuf.c