Skip to content

Commit

Permalink
lib-smtp: smtp-server-reply - Make smtp_server_reply_get_one_line() r…
Browse files Browse the repository at this point in the history
…eply parameter const.
  • Loading branch information
stephanbosch committed Mar 2, 2019
1 parent 870b3f9 commit 4cbf9aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib-smtp/smtp-server-private.h
Expand Up @@ -219,7 +219,8 @@ void smtp_server_reply_free(struct smtp_server_command *cmd);

int smtp_server_reply_send(struct smtp_server_reply *resp);

const char *smtp_server_reply_get_one_line(struct smtp_server_reply *reply);
const char *
smtp_server_reply_get_one_line(const struct smtp_server_reply *reply);

/*
* Command
Expand Down
3 changes: 2 additions & 1 deletion src/lib-smtp/smtp-server-reply.c
Expand Up @@ -384,7 +384,8 @@ void smtp_server_reply_quit(struct smtp_server_cmd_ctx *_cmd)
smtp_server_reply_submit(reply);
}

const char *smtp_server_reply_get_one_line(struct smtp_server_reply *reply)
const char *
smtp_server_reply_get_one_line(const struct smtp_server_reply *reply)
{
string_t *textbuf, *str;
const char *text, *p;
Expand Down

0 comments on commit 4cbf9aa

Please sign in to comment.