Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
imap-send: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:43 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ee6e065
)
diff --git
a/imap-send.c
b/imap-send.c
index 36c7c1b4f6195b2d2f00013611a5d0aa96ecf408..ffb0a6eca8ce632dc448883a47987bf48adea31b 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-1189,11
+1189,11
@@
static struct imap_store *imap_open_store(struct imap_server_conf *srvc, char *f
*/
static void lf_to_crlf(struct strbuf *msg)
{
*/
static void lf_to_crlf(struct strbuf *msg)
{
- char *new;
+ char *new
_msg
;
size_t i, j;
char lastc;
size_t i, j;
char lastc;
- /* First pass: tally, in j, the size of the new string: */
+ /* First pass: tally, in j, the size of the new
_msg
string: */
for (i = j = 0, lastc = '\0'; i < msg->len; i++) {
if (msg->buf[i] == '\n' && lastc != '\r')
j++; /* a CR will need to be added here */
for (i = j = 0, lastc = '\0'; i < msg->len; i++) {
if (msg->buf[i] == '\n' && lastc != '\r')
j++; /* a CR will need to be added here */
@@
-1201,18
+1201,18
@@
static void lf_to_crlf(struct strbuf *msg)
j++;
}
j++;
}
- new = xmallocz(j);
+ new
_msg
= xmallocz(j);
/*
/*
- * Second pass: write the new string. Note that this loop is
+ * Second pass: write the new
_msg
string. Note that this loop is
* otherwise identical to the first pass.
*/
for (i = j = 0, lastc = '\0'; i < msg->len; i++) {
if (msg->buf[i] == '\n' && lastc != '\r')
* otherwise identical to the first pass.
*/
for (i = j = 0, lastc = '\0'; i < msg->len; i++) {
if (msg->buf[i] == '\n' && lastc != '\r')
- new[j++] = '\r';
- lastc = new[j++] = msg->buf[i];
+ new
_msg
[j++] = '\r';
+ lastc = new
_msg
[j++] = msg->buf[i];
}
}
- strbuf_attach(msg, new, j, j + 1);
+ strbuf_attach(msg, new
_msg
, j, j + 1);
}
/*
}
/*