From: Alexander Moisseev Date: Wed, 28 Jun 2017 07:14:54 +0000 (+0300) Subject: [Refactor] Correct misspelled `rspamd_smtp_recieved_parse` X-Git-Tag: 1.6.2~55^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b66b1aa609308ad2a6b7ace6fa54ad6273e6d097;p=rspamd.git [Refactor] Correct misspelled `rspamd_smtp_recieved_parse` --- diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index 593f13b11..e187c5d14 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -35,7 +35,7 @@ rspamd_mime_header_check_special (struct rspamd_task *task, recv = rspamd_mempool_alloc0 (task->task_pool, sizeof (struct received_header)); recv->hdr = rh; - rspamd_smtp_recieved_parse (task, rh->decoded, + rspamd_smtp_received_parse (task, rh->decoded, strlen (rh->decoded), recv); /* Set flags */ if (recv->type == RSPAMD_RECEIVED_ESMTPA || diff --git a/src/libmime/smtp_parsers.h b/src/libmime/smtp_parsers.h index 439e6c7c8..fdd390f22 100644 --- a/src/libmime/smtp_parsers.h +++ b/src/libmime/smtp_parsers.h @@ -22,7 +22,7 @@ #include "task.h" #include "message.h" -int rspamd_smtp_recieved_parse (struct rspamd_task *task, +int rspamd_smtp_received_parse (struct rspamd_task *task, const char *data, size_t len, struct received_header *rh); int rspamd_smtp_addr_parse (const char *data, size_t len, struct rspamd_email_address *addr); diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl index 87cb73e88..4996658fc 100644 --- a/src/ragel/smtp_received_parser.rl +++ b/src/ragel/smtp_received_parser.rl @@ -234,7 +234,7 @@ %% write data; int -rspamd_smtp_recieved_parse (struct rspamd_task *task, const char *data, size_t len, struct received_header *rh) +rspamd_smtp_received_parse (struct rspamd_task *task, const char *data, size_t len, struct received_header *rh) { struct rspamd_email_address for_addr, *addr; const char *real_domain_start, *real_domain_end, diff --git a/utils/received_parser_bench.c b/utils/received_parser_bench.c index 41a637422..2ad256452 100644 --- a/utils/received_parser_bench.c +++ b/utils/received_parser_bench.c @@ -60,7 +60,7 @@ rspamd_process_file (const gchar *fname) } t1 = rspamd_get_virtual_ticks (); - rspamd_smtp_recieved_parse (task, buf->str, buf->len, &rh); + rspamd_smtp_received_parse (task, buf->str, buf->len, &rh); t2 = rspamd_get_virtual_ticks (); total_time += t2 - t1;