diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-03-11 11:15:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-11 11:15:03 -0700 |
commit | ddff93f096be8e8c8670b9bf526ccf67545720af (patch) | |
tree | 7c08f9f9026875be270fd3f7b4ac23fd0056646b /profile.c | |
parent | 22eb8e06177fb395a03c9404e46d48fbc3f5cf37 (diff) | |
download | subsurface-ddff93f096be8e8c8670b9bf526ccf67545720af.tar.gz |
Event name should be a const char *
This avoids a possible warning when calling this function with a string
literal as second argument.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -336,7 +336,7 @@ int get_cylinder_index(struct dive *dive, struct event *ev) return best; } -struct event *get_next_event(struct event *event, char *name) +struct event *get_next_event(struct event *event, const char *name) { if (!name || !*name) return NULL; |