From 36dda991898ce621a0b0f7103f763690e73fa0ff Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sat, 18 Jul 2020 07:56:11 +0300 Subject: Docs were extended, consts were added. --- src/multipart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/multipart.c') diff --git a/src/multipart.c b/src/multipart.c index a412603..75cbc25 100644 --- a/src/multipart.c +++ b/src/multipart.c @@ -124,7 +124,7 @@ static int param_end(struct automata *a) a->newfile, &a->file, a->buf, a->buf_size); a->request->callback.act(a->request->callback.userdata, 0, &a->file, 0, 0); - a->newfile = 1; + a->newfile = 1; a->readed -= a->buf_size; a->buf_size = 0; magi_files_add(&a->request->files, &a->file); @@ -215,7 +215,7 @@ static void apply_callback(struct automata *a) if (a->file.filename && full) { a->request->callback.act(a->request->callback.userdata, a->newfile, &a->file, a->buf, a->buf_size); - a->newfile = 0; + a->newfile = 0; a->readed -= a->buf_size; a->buf_size = 0; } @@ -270,7 +270,7 @@ static void *data_add(struct automata *a, char c) */ static void *state_begin(struct automata *a, char c) { - if (sepget(a) != c) { /* 'c' is not wanted character from separator; */ + if (sepget(a) != c) { /* c is not wanted character from separator; */ a->boundary_pos = 0; /* so nullify progress in reading separator. */ } else { a->boundary_pos++; -- cgit v1.2.3