Changeset 954

Show
Ignore:
Timestamp:
06/02/08 13:37:55 (6 months ago)
Author:
takkaria
Message:

Fix some constness warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/target.c

    r918 r954  
    234234        int px = p_ptr->px; 
    235235 
    236         byte *x = (byte*)(u)
    237         byte *y = (byte*)(v)
     236        const byte *x = u
     237        const byte *y = v
    238238 
    239239        int da, db, kx, ky; 
  • trunk/src/ui-menu.c

    r918 r954  
    823823void menu_set_filter(menu_type *menu, const int filter_list[], int n) 
    824824{ 
    825         menu->filter_list = (int *)filter_list; 
     825        menu->filter_list = filter_list; 
    826826        menu->filter_count = n; 
    827827} 
  • trunk/src/ui-menu.h

    r918 r954  
    203203        int flags;              /* Flags specifying the behavior of this menu. */ 
    204204        int filter_count;       /* number of rows in current view */ 
    205         int *filter_list;       /* optional filter (view) of menu objects */ 
     205        const int *filter_list;       /* optional filter (view) of menu objects */ 
    206206 
    207207        int count;              /* number of rows in underlying data set */