imap-send: simplify v_issue_imap_cmd() and get_cmd_result() using starts_with()
commitba9b9e124276e5d27ecf0e7701df1dedab6375c8
authorRené Scharfe <l.s.r@web.de>
Sat, 30 Aug 2014 16:14:24 +0000 (30 18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Sep 2014 19:26:23 +0000 (2 12:26 -0700)
treefb05b9c3724329c1c08468f96db4b959be27176e
parent3918057164a8060082b828c0ac1ce25ad6a86d38
imap-send: simplify v_issue_imap_cmd() and get_cmd_result() using starts_with()

Use starts_with() instead of memcmp() to check if NUL-terminated
strings match prefixes.  This gets rid of some magic string length
constants.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c