From: Jonathan Dieter Date: Wed, 6 Jun 2018 08:19:14 +0000 (+0300) Subject: Reorder function so it's above non-static functions X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~244 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b2ded07aa0a1ab2409dd8078620776b8a772afb;p=zchunk.git Reorder function so it's above non-static functions Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/dl/multipart.c b/src/lib/dl/multipart.c index 506c9bd..2194a9b 100644 --- a/src/lib/dl/multipart.c +++ b/src/lib/dl/multipart.c @@ -94,6 +94,12 @@ static int gen_regex(zckDL *dl) { return True; } +static void reset_mp(zckMP *mp) { + if(mp->buffer) + free(mp->buffer); + memset(mp, 0, sizeof(zckMP)); +} + size_t multipart_extract(zckDL *dl, char *b, size_t l) { VALIDATE(dl); if(dl->priv == NULL || dl->priv->mp == NULL) @@ -201,12 +207,6 @@ end: return l; } -static void reset_mp(zckMP *mp) { - if(mp->buffer) - free(mp->buffer); - memset(mp, 0, sizeof(zckMP)); -} - size_t multipart_get_boundary(zckDL *dl, char *b, size_t size) { VALIDATE(dl); if(dl->priv == NULL)