From f323a89923435d154bc607f72431af0d39ce917b Mon Sep 17 00:00:00 2001 From: Fotis Georgatos Date: Mon, 24 Jun 2019 22:44:58 +0200 Subject: [PATCH 1/2] typo: recieved -> received --- mpc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mpc.c b/mpc.c index 9856efa..cd675f7 100644 --- a/mpc.c +++ b/mpc.c @@ -653,7 +653,7 @@ char *mpc_err_string(mpc_err_t *x) { } mpc_err_string_cat(buffer, &pos, &max, " at "); - mpc_err_string_cat(buffer, &pos, &max, mpc_err_char_unescape(x->recieved)); + mpc_err_string_cat(buffer, &pos, &max, mpc_err_char_unescape(x->received)); mpc_err_string_cat(buffer, &pos, &max, "\n"); return realloc(buffer, strlen(buffer) + 1); @@ -671,7 +671,7 @@ static mpc_err_t *mpc_err_new(mpc_input_t *i, const char *expected) { x->expected[0] = mpc_malloc(i, strlen(expected) + 1); strcpy(x->expected[0], expected); x->failure = NULL; - x->recieved = mpc_input_peekc(i); + x->received = mpc_input_peekc(i); return x; } @@ -686,7 +686,7 @@ static mpc_err_t *mpc_err_fail(mpc_input_t *i, const char *failure) { x->expected = NULL; x->failure = mpc_malloc(i, strlen(failure) + 1); strcpy(x->failure, failure); - x->recieved = ' '; + x->received = ' '; return x; } @@ -700,7 +700,7 @@ static mpc_err_t *mpc_err_file(const char *filename, const char *failure) { x->expected = NULL; x->failure = malloc(strlen(failure) + 1); strcpy(x->failure, failure); - x->recieved = ' '; + x->received = ' '; return x; } @@ -777,7 +777,7 @@ static mpc_err_t *mpc_err_or(mpc_input_t *i, mpc_err_t** x, int n) { break; } - e->recieved = x[j]->recieved; + e->received = x[j]->received; for (k = 0; k < x[j]->expected_num; k++) { if (!mpc_err_contains_expected(i, e, x[j]->expected[k])) { From 83393d4f4cd6fee67095115b53f039921f4158ca Mon Sep 17 00:00:00 2001 From: Fotis Georgatos Date: Mon, 24 Jun 2019 22:46:12 +0200 Subject: [PATCH 2/2] typo: recieved -> received [ok] --- mpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpc.h b/mpc.h index b3c51a2..a5ed16d 100644 --- a/mpc.h +++ b/mpc.h @@ -43,7 +43,7 @@ typedef struct { char *filename; char *failure; char **expected; - char recieved; + char received; } mpc_err_t; void mpc_err_delete(mpc_err_t *e);