Module: wine Branch: master Commit: efdc116856426808f126e813152846c60bd703ad URL: http://source.winehq.org/git/wine.git/?a=commit;h=efdc116856426808f126e81315...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Mon Nov 5 22:03:14 2007 +0000
shell32: Constify some variables.
---
dlls/shell32/trash.c | 4 ++-- dlls/shell32/xdg.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 8a6de4c..14d6f90 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -138,7 +138,7 @@ static BOOL TRASH_EnsureInitialized(void) return TRUE; }
-static BOOL file_good_for_bucket(TRASH_BUCKET *pBucket, struct stat *file_stat) +static BOOL file_good_for_bucket(const TRASH_BUCKET *pBucket, const struct stat *file_stat) { if (pBucket->device != file_stat->st_dev) return FALSE; @@ -486,7 +486,7 @@ static INT CALLBACK free_item_callback(void *item, void *lParam) return TRUE; }
-static HDPA enum_bucket_trashinfos(TRASH_BUCKET *bucket, int *count) +static HDPA enum_bucket_trashinfos(const TRASH_BUCKET *bucket, int *count) { HDPA ret = DPA_Create(32); struct dirent *entry; diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c index 108d92a..3b1a1bc 100644 --- a/dlls/shell32/xdg.c +++ b/dlls/shell32/xdg.c @@ -508,7 +508,7 @@ struct tagXDG_PARSED_FILE PARSED_GROUP *groups; };
-static BOOL parsed_str_eq(PARSED_STRING *str1, const char *str2) +static BOOL parsed_str_eq(const PARSED_STRING *str1, const char *str2) { if (strncmp(str1->str, str2, str1->len) != 0) return FALSE;