diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-05 15:36:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-05 15:36:15 +0400 |
commit | 37026b12ec1047dd5f4637ad281f108a7963af83 (patch) | |
tree | b45d0b945f84dff6181fe26a464ddbfe0d127f6a /source/blender/editors/space_file/filelist.c | |
parent | 36fc4e15f69f4150812408b32a9052017590eb8b (diff) |
Code cleanup: use bool for static methods
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 249ab3ef2c1..6ea5638b8f0 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -745,19 +745,17 @@ void filelist_setfilter_types(struct FileList *filelist, const char *filter_glob } /* would recognize .blend as well */ -static int file_is_blend_backup(const char *str) +static bool file_is_blend_backup(const char *str) { - short a, b; - int retval = 0; - - a = strlen(str); - b = 7; - + const size_t a = strlen(str); + size_t b = 7; + bool retval = 0; + if (a == 0 || b >= a) { /* pass */ } else { - char *loc; + const char *loc; if (a > b + 1) b++; |