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>maint
parent
1efee7ffce
commit
81b38947c1
|
@ -669,21 +669,16 @@ bail:
|
||||||
return -1;
|
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;
|
struct imap_list *head;
|
||||||
|
|
||||||
if (!parse_imap_list_l(imap, sp, &head, 0))
|
if (!parse_imap_list_l(NULL, sp, &head, 0))
|
||||||
return head;
|
return head;
|
||||||
free_list(head);
|
free_list(head);
|
||||||
return NULL;
|
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)
|
static void parse_capability(struct imap *imap, char *cmd)
|
||||||
{
|
{
|
||||||
char *arg;
|
char *arg;
|
||||||
|
|
Loading…
Reference in New Issue