Changeset 3eb599d


Ignore:
Timestamp:
Aug 15, 2009, 7:08:20 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:
89b2daf
Parents:
9c01a5e
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:04)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
Message:
Add const qualifiers for owl_messagelist *.

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

Legend:

Unmodified
Added
Removed
  • functions.c

    r1fdab04 r3eb599d  
    17271727void owl_function_delete_by_id(int id, int flag)
    17281728{
    1729   owl_messagelist *ml;
     1729  const owl_messagelist *ml;
    17301730  owl_message *m;
    17311731  ml = owl_global_get_msglist(&g);
  • messagelist.c

    rd43edd2 r3eb599d  
    99}
    1010
    11 int owl_messagelist_get_size(owl_messagelist *ml)
     11int owl_messagelist_get_size(const owl_messagelist *ml)
    1212{
    1313  return(owl_list_get_size(&(ml->list)));
    1414}
    1515
    16 void *owl_messagelist_get_element(owl_messagelist *ml, int n)
     16void *owl_messagelist_get_element(const owl_messagelist *ml, int n)
    1717{
    1818  return(owl_list_get_element(&(ml->list), n));
    1919}
    2020
    21 owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int target_id)
     21owl_message *owl_messagelist_get_by_id(const owl_messagelist *ml, int target_id)
    2222{
    2323  /* return the message with id == 'id'.  If it doesn't exist return NULL. */
     
    9090}
    9191
    92 void owl_messagelist_invalidate_formats(owl_messagelist *ml)
     92void owl_messagelist_invalidate_formats(const owl_messagelist *ml)
    9393{
    9494  int i, j;
  • util.c

    re19eb97 r3eb599d  
    1010  char buff[1024];
    1111  WINDOW *sepwin;
    12   owl_messagelist *ml;
     12  const owl_messagelist *ml;
    1313  owl_view *v;
    1414  int x, y, i;
     
    477477void owl_hack_animate()
    478478{
    479   owl_messagelist *ml;
     479  const owl_messagelist *ml;
    480480  owl_message *m;
    481481  owl_fmtext *fm;
  • view.c

    r1fdab04 r3eb599d  
    3030{
    3131  int i, j;
    32   owl_messagelist *gml;
     32  const owl_messagelist *gml;
    3333  owl_messagelist *ml;
    3434  owl_message *m;
Note: See TracChangeset for help on using the changeset viewer.