Changeset ad15610 for message.c


Ignore:
Timestamp:
Aug 8, 2007, 6:01:51 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ce7b824
Parents:
b51d257
Message:
Applying ctl's variable shuffling patch for better ANSI C-ness. closes #18
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r21f0a9d rad15610  
    2727owl_fmtext_cache * owl_message_next_fmtext() /*noproto*/
    2828{
     29    owl_fmtext_cache * f = fmtext_cache_next;
    2930    if(fmtext_cache_next->message != NULL) {
    3031        owl_message_invalidate_format(fmtext_cache_next->message);
    3132    }
    32     owl_fmtext_cache * f = fmtext_cache_next;
    3333    fmtext_cache_next++;
    3434    if(fmtext_cache_next - fmtext_cache == OWL_FMTEXT_CACHE_SIZE)
     
    567567
    568568int owl_message_is_answered(owl_message *m) {
     569  char *q;
    569570  if(!owl_message_is_question(m)) return 0;
    570   char * q = owl_message_get_attribute_value(m, "question");
     571  q = owl_message_get_attribute_value(m, "question");
    571572  if(!q) return 0;
    572573  return !strcmp(q, "answered");
Note: See TracChangeset for help on using the changeset viewer.