diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-13 20:27:28 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-13 20:27:28 +0000 |
commit | c4cb0c7cf11b917bc11de41b9bca6052c8616785 (patch) | |
tree | 9b401b14d98d12639eb9a0ff907f8b64cb39af0c /src/mail/ngx_mail_handler.c | |
parent | 6cc54cc3bed8f3c1d35e59dc3c8bd331ff5c0949 (diff) | |
download | nginx-c4cb0c7cf11b917bc11de41b9bca6052c8616785.tar.gz nginx-c4cb0c7cf11b917bc11de41b9bca6052c8616785.zip |
style fix and optimizations
Diffstat (limited to 'src/mail/ngx_mail_handler.c')
-rw-r--r-- | src/mail/ngx_mail_handler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c index 1eadbb986..251d31603 100644 --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -32,10 +32,10 @@ static ngx_mail_init_protocol_pt ngx_mail_init_protocols[] = { }; -static ngx_mail_parse_pt ngx_mail_parse[] = { - ngx_pop3_parse_command, - ngx_imap_parse_command, - ngx_smtp_parse_command +static ngx_mail_parse_command_pt ngx_mail_parse_commands[] = { + ngx_mail_pop3_parse_command, + ngx_mail_imap_parse_command, + ngx_mail_smtp_parse_command }; @@ -546,7 +546,7 @@ ngx_mail_read_command(ngx_mail_session_t *s) return NGX_AGAIN; } - rc = ngx_mail_parse[s->protocol](s); + rc = ngx_mail_parse_commands[s->protocol](s); if (rc == NGX_AGAIN) { |