aboutsummaryrefslogtreecommitdiff
path: root/src/multipart.c
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-07-18 07:56:11 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-07-18 07:56:11 +0300
commit36dda991898ce621a0b0f7103f763690e73fa0ff (patch)
treecee197e13a1c42a5ee3ea67465d1151a9c0cc12a /src/multipart.c
parent4d77e4bb69a47daf23ad4a902b300bf1aa7d5597 (diff)
downloadmagi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar
magi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar.xz
magi-36dda991898ce621a0b0f7103f763690e73fa0ff.zip
Docs were extended, consts were added.
Diffstat (limited to 'src/multipart.c')
-rw-r--r--src/multipart.c6
1 files changed, 3 insertions, 3 deletions
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++;