Changeset e19eb97 for view.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 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:
1077891a
Parents:
fa4562c
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • view.c

    r4d86e06 re19eb97  
    22#include "owl.h"
    33
    4 void owl_view_create(owl_view *v, char *name, owl_filter *f, owl_style *s)
     4void owl_view_create(owl_view *v, const char *name, owl_filter *f, owl_style *s)
    55{
    66  v->name=owl_strdup(name);
     
    1111}
    1212
    13 char *owl_view_get_name(owl_view *v)
     13const char *owl_view_get_name(owl_view *v)
    1414{
    1515  return(v->name);
     
    6767}
    6868
    69 char *owl_view_get_style_name(owl_view *v) {
     69const char *owl_view_get_style_name(owl_view *v) {
    7070  return(owl_style_get_name(v->style));
    7171}
     
    154154}
    155155
    156 char *owl_view_get_filtname(owl_view *v)
     156const char *owl_view_get_filtname(owl_view *v)
    157157{
    158158  return(owl_filter_get_name(v->filter));
Note: See TracChangeset for help on using the changeset viewer.