From dbd99f706ecb6074d5f80573a881b98a3e30ce25 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 21 Feb 2017 10:00:16 +0100 Subject: Many filenames are const strings So we can use string constants for those Signed-off-by: Robert C. Helling --- core/dive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/dive.c') 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)) -- cgit v1.2.3-70-g09d2