[dovecot-cvs] dovecot/src/imap client.c, 1.36, 1.37 imap-sort.c,
1.11, 1.12
cras at procontrol.fi
cras at procontrol.fi
Tue May 25 01:35:57 EEST 2004
Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv15968/imap
Modified Files:
client.c imap-sort.c
Log Message:
cleanup: str_*case(t_strdup_noconst(str)) -> t_str_*case(str)
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- a/client.c 2 May 2004 20:32:15 -0000 1.36
+++ b/client.c 24 May 2004 22:35:55 -0000 1.37
@@ -163,7 +163,7 @@
else if (client->cmd_name == NULL)
error = t_strconcat("BAD Error in IMAP command: ", msg, NULL);
else {
- cmd = str_ucase(t_strdup_noconst(client->cmd_name));
+ cmd = t_str_ucase(client->cmd_name);
error = t_strconcat("BAD Error in IMAP command ",
cmd, ": ", msg, NULL);
}
Index: imap-sort.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-sort.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- a/imap-sort.c 16 May 2004 23:11:17 -0000 1.11
+++ b/imap-sort.c 24 May 2004 22:35:55 -0000 1.12
@@ -313,7 +313,7 @@
if (ctx->common_mask & MAIL_SORT_CC) {
str = get_first_mailbox(mail, "cc");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_cc) != 0) {
i_free(ctx->last_cc);
@@ -333,7 +333,7 @@
if (ctx->common_mask & MAIL_SORT_FROM) {
str = get_first_mailbox(mail, "from");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_from) != 0) {
i_free(ctx->last_from);
@@ -367,7 +367,7 @@
if (ctx->common_mask & MAIL_SORT_TO) {
str = get_first_mailbox(mail, "to");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_to) != 0) {
i_free(ctx->last_to);
@@ -430,7 +430,7 @@
else {
str = get_first_mailbox(mail, "cc");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
@@ -444,7 +444,7 @@
else {
str = get_first_mailbox(mail, "from");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
@@ -458,7 +458,7 @@
else {
str = get_first_mailbox(mail, "to");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
@@ -592,7 +592,7 @@
}
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
return str;
}
More information about the dovecot-cvs
mailing list