Changeset 4490:9855b4b114ba

Show
Ignore:
Timestamp:
2005-12-16 10:49:40 (3 years ago)
Author:
Recai Oktas <roktas@…>
Branch:
HEAD
Message:

Use ascii_str* instead of mutt_str* in several places where it's needed.

Files:
6 modified

Legend:

Unmodified
Added
Removed
  • color.c

    r4343 r4490  
    310310  char *eptr; 
    311311 
    312   if (mutt_strncasecmp (s, "bright", 6) == 0) 
     312  if (ascii_strncasecmp (s, "bright", 6) == 0) 
    313313  { 
    314314    *attr |= brite; 
     
    317317 
    318318  /* allow aliases for xterm color resources */ 
    319   if (mutt_strncasecmp (s, "color", 5) == 0) 
     319  if (ascii_strncasecmp (s, "color", 5) == 0) 
    320320  { 
    321321    s += 5; 
  • crypt.c

    r4439 r4490  
    553553    }  
    554554    else if (a->type == TYPEMESSAGE && 
    555              mutt_strcasecmp(a->subtype, "delivery-status")) 
     555             ascii_strcasecmp(a->subtype, "delivery-status")) 
    556556    { 
    557557      if(a->encoding != ENC7BIT) 
     
    809809  if ((WithCrypto & APPLICATION_PGP) 
    810810      && protocol_major == TYPEAPPLICATION 
    811       && !mutt_strcasecmp (protocol_minor, "pgp-signature")) 
     811      && !ascii_strcasecmp (protocol_minor, "pgp-signature")) 
    812812    ; 
    813813  else if ((WithCrypto & APPLICATION_SMIME) 
    814814           && protocol_major == TYPEAPPLICATION 
    815            && !(mutt_strcasecmp (protocol_minor, "x-pkcs7-signature") 
    816                && mutt_strcasecmp (protocol_minor, "pkcs7-signature"))) 
     815           && !(ascii_strcasecmp (protocol_minor, "x-pkcs7-signature") 
     816               && ascii_strcasecmp (protocol_minor, "pkcs7-signature"))) 
    817817    ; 
    818818  else if (protocol_major == TYPEMULTIPART 
    819            && !mutt_strcasecmp (protocol_minor, "mixed")) 
     819           && !ascii_strcasecmp (protocol_minor, "mixed")) 
    820820    ; 
    821821  else 
     
    841841          if ((WithCrypto & APPLICATION_PGP) 
    842842              && signatures[i]->type == TYPEAPPLICATION  
    843               && !mutt_strcasecmp (signatures[i]->subtype, "pgp-signature")) 
     843              && !ascii_strcasecmp (signatures[i]->subtype, "pgp-signature")) 
    844844          { 
    845845            if (crypt_pgp_verify_one (signatures[i], s, tempfile) != 0) 
     
    851851          if ((WithCrypto & APPLICATION_SMIME) 
    852852              && signatures[i]->type == TYPEAPPLICATION  
    853               && (!mutt_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature") 
    854                   || !mutt_strcasecmp(signatures[i]->subtype, "pkcs7-signature"))) 
     853              && (!ascii_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature") 
     854                  || !ascii_strcasecmp(signatures[i]->subtype, "pkcs7-signature"))) 
    855855          { 
    856856            if (crypt_smime_verify_one (signatures[i], s, tempfile) != 0) 
  • handler.c

    r4457 r4490  
    18441844    } 
    18451845    else if ((WithCrypto & APPLICATION_PGP) 
    1846              && mutt_strcasecmp ("encrypted", b->subtype) == 0) 
     1846             && ascii_strcasecmp ("encrypted", b->subtype) == 0) 
    18471847    { 
    18481848      p = mutt_get_parameter ("protocol", b->parameter); 
  • init.c

    r4418 r4490  
    835835 
    836836    /* some cheap hacks that I expect to remove */ 
    837     if (!mutt_strcasecmp(buf->data, "any")) 
     837    if (!ascii_strcasecmp(buf->data, "any")) 
    838838      a->major = safe_strdup("*/.*"); 
    839     else if (!mutt_strcasecmp(buf->data, "none")) 
     839    else if (!ascii_strcasecmp(buf->data, "none")) 
    840840      a->major = safe_strdup("cheap_hack/this_should_never_match"); 
    841841    else 
     
    899899    mutt_extract_token (buf, s, 0); 
    900900 
    901     if (!mutt_strcasecmp(buf->data, "any")) 
     901    if (!ascii_strcasecmp(buf->data, "any")) 
    902902      tmp = safe_strdup("*/.*"); 
    903     else if (!mutt_strcasecmp(buf->data, "none")) 
     903    else if (!ascii_strcasecmp(buf->data, "none")) 
    904904      tmp = safe_strdup("cheap_hack/this_should_never_match"); 
    905905    else 
     
    10021002    category--; 
    10031003  } 
    1004   if (!mutt_strncasecmp(category, "attachment", strlen(category))) { 
     1004  if (!ascii_strncasecmp(category, "attachment", strlen(category))) { 
    10051005    if (op == '+') 
    10061006      listp = &AttachAllow; 
     
    10081008      listp = &AttachExclude; 
    10091009  } 
    1010   else if (!mutt_strncasecmp(category, "inline", strlen(category))) { 
     1010  else if (!ascii_strncasecmp(category, "inline", strlen(category))) { 
    10111011    if (op == '+') 
    10121012      listp = &InlineAllow; 
     
    10391039    p--; 
    10401040  } 
    1041   if (!mutt_strncasecmp(p, "attachment", strlen(p))) { 
     1041  if (!ascii_strncasecmp(p, "attachment", strlen(p))) { 
    10421042    if (op == '+') 
    10431043      listp = &AttachAllow; 
     
    10451045      listp = &AttachExclude; 
    10461046  } 
    1047   else if (!mutt_strncasecmp(p, "inline", strlen(p))) { 
     1047  else if (!ascii_strncasecmp(p, "inline", strlen(p))) { 
    10481048    if (op == '+') 
    10491049      listp = &InlineAllow; 
  • parse.c

    r4439 r4490  
    15431543      /* Always recurse multiparts, except multipart/alternative. */ 
    15441544      shallrecurse = 1; 
    1545       if (!mutt_strcasecmp(bp->subtype, "alternative")) 
     1545      if (!ascii_strcasecmp(bp->subtype, "alternative")) 
    15461546        shallrecurse = 0; 
    15471547 
  • smime.c

    r4439 r4490  
    16221622       
    16231623      line = mutt_read_line (line, &linelen, smimeerr, &lineno); 
    1624       if (linelen && !mutt_strcasecmp (line, "verification successful")) 
     1624      if (linelen && !ascii_strcasecmp (line, "verification successful")) 
    16251625        badsig = 0; 
    16261626 
     
    18431843     
    18441844    line = mutt_read_line (line, &linelen, smimeerr, &lineno); 
    1845     if (linelen && !mutt_strcasecmp (line, "verification successful")) 
     1845    if (linelen && !ascii_strcasecmp (line, "verification successful")) 
    18461846      m->goodsig = 1; 
    18471847    FREE (&line);