aboutsummaryrefslogtreecommitdiff
path: root/src/parse.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/parse.c
parent4d77e4bb69a47daf23ad4a902b300bf1aa7d5597 (diff)
downloadmagi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar
magi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar.xz
magi-36dda991898ce621a0b0f7103f763690e73fa0ff.zip
Docs were extended, consts were added.
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index fa8b54a..0ca1cd9 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -164,7 +164,7 @@ static int next(void *userdata)
if (last) {
free(buffer);
buffer = 0;
- return EOF;
+ return EOF;
}
left = fread(buffer, 1, size, stdin);
last = left != size;
@@ -203,7 +203,7 @@ int magi_parse_body(struct magi_request *request)
char *boundary = bound(t);
if (boundary && *boundary) {
magi_parse_multipart(request, boundary, next,
- &request->limits.read_buffer);
+ &request->limits.read_buffer);
} else {
*e = magi_error_nobound;
}