Changeset 476faed


Ignore:
Timestamp:
Aug 15, 2009, 7:08:21 PM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
35b3518
Parents:
12bc46a
git-author:
Anders Kaseorg <andersk@mit.edu> (07/22/09 03:41:14)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:21)
Message:
Add const qualifiers for owl_buddy *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • buddy.c

    re19eb97 r476faed  
    88}
    99
    10 const char *owl_buddy_get_name(owl_buddy *b)
     10const char *owl_buddy_get_name(const owl_buddy *b)
    1111{
    1212  if (b->name) return(b->name);
     
    1414}
    1515
    16 int owl_buddy_is_idle(owl_buddy *b)
     16int owl_buddy_is_idle(const owl_buddy *b)
    1717{
    1818  if (b->isidle) return(1);
     
    3030}
    3131
    32 int owl_buddy_get_proto(owl_buddy *b)
     32int owl_buddy_get_proto(const owl_buddy *b)
    3333{
    3434  return(b->proto);
    3535}
    3636
    37 int owl_buddy_is_proto_aim(owl_buddy *b)
     37int owl_buddy_is_proto_aim(const owl_buddy *b)
    3838{
    3939  if (b->proto==OWL_PROTOCOL_AIM) return(1);
     
    5353/* return the number of minutes the buddy has been idle
    5454 */
    55 int owl_buddy_get_idle_time(owl_buddy *b)
     55int owl_buddy_get_idle_time(const owl_buddy *b)
    5656{
    5757  time_t now;
  • buddylist.c

    re19eb97 r476faed  
    121121int owl_buddylist_is_aim_buddy_loggedin(owl_buddylist *bl, const char *screenname)
    122122{
    123   owl_buddy *b;
     123  const owl_buddy *b;
    124124
    125125  b=owl_buddylist_get_aim_buddy(bl, screenname);
  • functions.c

    r12bc46a r476faed  
    30783078  owl_fmtext fm;
    30793079  owl_buddylist *bl;
    3080   owl_buddy *b;
     3080  const owl_buddy *b;
    30813081  char *timestr;
    30823082#ifdef HAVE_LIBZEPHYR
Note: See TracChangeset for help on using the changeset viewer.