diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-01-15 09:06:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-15 14:50:22 -0800 |
commit | 81b38947c17d319204a1292d28c8608c7fc25319 (patch) | |
tree | e8e15c73f6fa0726e22a4117552d873f61afee5b /imap-send.c | |
parent | 1efee7ffce56da48ac0cecfe2e66f0f6f2b15dd6 (diff) | |
download | git-81b38947c17d319204a1292d28c8608c7fc25319.tar.gz git-81b38947c17d319204a1292d28c8608c7fc25319.tar.xz |
imap-send.c: inline parse_imap_list() in parse_list()
The function is only called from here.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r-- | imap-send.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/imap-send.c b/imap-send.c index 131325a31..0d1f87a65 100644 --- a/imap-send.c +++ b/imap-send.c @@ -669,21 +669,16 @@ bail: return -1; } -static struct imap_list *parse_imap_list(struct imap *imap, char **sp) +static struct imap_list *parse_list(char **sp) { struct imap_list *head; - if (!parse_imap_list_l(imap, sp, &head, 0)) + if (!parse_imap_list_l(NULL, sp, &head, 0)) return head; free_list(head); return NULL; } -static struct imap_list *parse_list(char **sp) -{ - return parse_imap_list(NULL, sp); -} - static void parse_capability(struct imap *imap, char *cmd) { char *arg; |