Skip to content

Commit

Permalink
imap-send.c: inline parse_imap_list() in parse_list()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Jan 15, 2013
1 parent 1efee7f commit 81b3894
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,21 +669,16 @@ static int parse_imap_list_l(struct imap *imap, char **sp, struct imap_list **cu
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;
Expand Down

0 comments on commit 81b3894

Please sign in to comment.