Changeset 476faed for buddy.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:21 PM (12 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>
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.