aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-08-17 12:14:07 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-08-17 12:14:07 +0300
commit7d0b4ad61ee1e150c76b9997971582066529b72a (patch)
treeb3defcdae0c2428babd31fc4d9d517b5fbdafd29
parent72dd15b1a9e55a77462ac1ae16e1dd28f304ee59 (diff)
downloadmagi-7d0b4ad61ee1e150c76b9997971582066529b72a.tar
magi-7d0b4ad61ee1e150c76b9997971582066529b72a.tar.xz
magi-7d0b4ad61ee1e150c76b9997971582066529b72a.zip
Misspell fix.
nulify -> nullify
-rw-r--r--README2
-rw-r--r--src/cookies.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/README b/README
index 9fc6d46..a1740ec 100644
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ Magi Library (libmagi) implements Common Gateway Interface.
Overview
Magi is free and open-source software: legal info is in the 'LICENSE' file.
-It is written in ANSI C without any dependecies except for C standard library.
+It is written in ANSI C without dependencies except for C standard library.
All source and inner header files are in the 'src' directory.
The 'include' directory is intended to be used in your include environment.
Headers in it contain library interface and its description in comments.
diff --git a/src/cookies.c b/src/cookies.c
index 35d876f..1f68152 100644
--- a/src/cookies.c
+++ b/src/cookies.c
@@ -21,7 +21,7 @@ struct automata {
typedef void *(*state)(struct automata *a, char c);
-static void nulify_cookie(struct automata *a)
+static void nullify_cookie(struct automata *a)
{
a->cookie.name = 0;
a->cookie.data = 0;
@@ -62,7 +62,7 @@ static void end_name(struct automata *a)
magi_cookies_add(a->list, &a->cookie);
a->list = &(*a->list)->next;
}
- nulify_cookie(a);
+ nullify_cookie(a);
a->cookie.name = a->buf;
} else {
free(a->buf);
@@ -181,7 +181,7 @@ static void parse_end(enum magi_error *e, struct automata *a, state s)
*e = magi_error_cookies;
} else if (end_data(a)) {
magi_cookies_add(a->list, &a->cookie);
- nulify_cookie(a);
+ nullify_cookie(a);
} else {
*e = magi_error_cookies;
}