projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop str_[n]cat.
[apps/madmutt.git]
/
color.c
diff --git
a/color.c
b/color.c
index
a160d6a
..
d3b4be5
100644
(file)
--- a/
color.c
+++ b/
color.c
@@
-214,7
+214,7
@@
int mutt_alloc_color (int fg, int bg)
/* find the smallest available index (object) */
i = 1;
/* find the smallest available index (object) */
i = 1;
-
FOREVER
{
+
for (;;)
{
p = ColorList;
while (p) {
if (p->index == i)
p = ColorList;
while (p) {
if (p->index == i)
@@
-402,7
+402,7
@@
_mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data,
do {
mutt_extract_token (buf, s, 0);
do {
mutt_extract_token (buf, s, 0);
- if (!
str_cmp
("*", buf->data)) {
+ if (!
m_strcmp
("*", buf->data)) {
for (tmp = ColorIndexList; tmp;) {
if (!do_cache)
do_cache = 1;
for (tmp = ColorIndexList; tmp;) {
if (!do_cache)
do_cache = 1;
@@
-415,7
+415,7
@@
_mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data,
else {
for (last = NULL, tmp = ColorIndexList; tmp;
last = tmp, tmp = tmp->next) {
else {
for (last = NULL, tmp = ColorIndexList; tmp;
last = tmp, tmp = tmp->next) {
- if (!
str_cmp
(buf->data, tmp->pattern)) {
+ if (!
m_strcmp
(buf->data, tmp->pattern)) {
if (!do_cache)
do_cache = 1;
debug_print (1, ("Freeing pattern \"%s\" from ColorIndexList\n", tmp->pattern));
if (!do_cache)
do_cache = 1;
debug_print (1, ("Freeing pattern \"%s\" from ColorIndexList\n", tmp->pattern));
@@
-457,7
+457,7
@@
add_pattern (COLOR_LINE ** top, const char *s, int sensitive,
while (tmp) {
if (sensitive) {
while (tmp) {
if (sensitive) {
- if (
str_cmp
(s, tmp->pattern) == 0)
+ if (
m_strcmp
(s, tmp->pattern) == 0)
break;
}
else {
break;
}
else {