Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
imap-send.c: inline parse_imap_list() in parse_list()
author
Michael Haggerty
<mhagger@alum.mit.edu>
Tue, 15 Jan 2013 08:06:25 +0000
(09:06 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Jan 2013 22:50:22 +0000
(14:50 -0800)
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>
imap-send.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
1efee7f
)
diff --git
a/imap-send.c
b/imap-send.c
index 131325a31940904a48b7b8fa00b4d673bda40da1..0d1f87a651bae9961f296db42449d0841a0cc1a1 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-669,21
+669,16
@@
static int parse_imap_list_l(struct imap *imap, char **sp, struct imap_list **cu
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;
free_list(head);
return NULL;
}
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;
static void parse_capability(struct imap *imap, char *cmd)
{
char *arg;