diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-02-21 10:00:16 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-21 13:14:56 -0800 |
commit | dbd99f706ecb6074d5f80573a881b98a3e30ce25 (patch) | |
tree | 8acf5a2ce48e6a148cd9ebd6761faa97f3df1869 /core/dive.c | |
parent | 508387b1e194d4d723b2bd8cb2c48d49e2c95ba9 (diff) | |
download | subsurface-dbd99f706ecb6074d5f80573a881b98a3e30ce25.tar.gz |
Many filenames are const strings
So we can use string constants for those
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.c b/core/dive.c index 72abee41e..58b92b5cc 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3603,7 +3603,7 @@ struct picture *alloc_picture() return pic; } -static bool new_picture_for_dive(struct dive *d, char *filename) +static bool new_picture_for_dive(struct dive *d, const char *filename) { FOR_EACH_PICTURE (d) { if (same_string(picture->filename, filename)) @@ -3628,7 +3628,7 @@ bool dive_check_picture_time(struct dive *d, int shift_time, timestamp_t timesta return false; } -bool picture_check_valid(char *filename, int shift_time) +bool picture_check_valid(const char *filename, int shift_time) { int i; struct dive *dive; @@ -3640,7 +3640,7 @@ bool picture_check_valid(char *filename, int shift_time) return false; } -void dive_create_picture(struct dive *dive, char *filename, int shift_time, bool match_all) +void dive_create_picture(struct dive *dive, const char *filename, int shift_time, bool match_all) { timestamp_t timestamp = picture_get_timestamp(filename); if (!new_picture_for_dive(dive, filename)) |