mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
22eb8e0617
commit
ddff93f096
2 changed files with 2 additions and 2 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue