diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | src/cookies.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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; } |