diff options
author | Tim Segers <tsegers@pm.me> | 2022-10-22 21:50:20 +0200 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2022-10-22 21:50:20 +0200 |
commit | 5990826a3b7fd661b234c53d0739f68eb138b3cb (patch) | |
tree | d6dcd45b4bb347223a807daddcdb10b71a74b87f /src/schedule.h | |
parent | 2e54be8428e075663c632645382c6588bdec2e84 (diff) | |
download | opendeco-5990826a3b7fd661b234c53d0739f68eb138b3cb.tar.gz |
Remove const qualifier from non-pointer parameters
Diffstat (limited to 'src/schedule.h')
-rw-r--r-- | src/schedule.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/schedule.h b/src/schedule.h index 299217e..d450232 100644 --- a/src/schedule.h +++ b/src/schedule.h @@ -30,7 +30,7 @@ typedef enum segtype_t { } segtype_t; typedef struct waypoint_callback_t { - void (*fn)(const decostate_t *ds, const waypoint_t, const segtype_t, void *arg); + void (*fn)(const decostate_t *, waypoint_t, segtype_t, void *); void *arg; } waypoint_callback_t; @@ -38,14 +38,14 @@ typedef struct waypoint_callback_t { extern int SWITCH_INTERMEDIATE; /* functions */ -const gas_t *best_gas(const double depth, const gas_t *gasses, const int nof_gasses); +const gas_t *best_gas(double depth, const gas_t *gasses, int nof_gasses); -int direct_ascent(const decostate_t *ds, const double depth, const double time, const gas_t *gas); -double calc_ndl(decostate_t *ds, const double depth, const double ascrate, const gas_t *gas); +int direct_ascent(const decostate_t *ds, double depth, double time, const gas_t *gas); +double calc_ndl(decostate_t *ds, double depth, double ascrate, const gas_t *gas); -void simulate_dive(decostate_t *ds, waypoint_t *waypoints, const int nof_waypoints, waypoint_callback_t *wp_cb); +void simulate_dive(decostate_t *ds, const waypoint_t *waypoints, int nof_waypoints, const waypoint_callback_t *wp_cb); -decoinfo_t calc_deco(decostate_t *ds, const double start_depth, const gas_t *start_gas, const gas_t *deco_gasses, - const int nof_gasses, waypoint_callback_t *wp_cb); +decoinfo_t calc_deco(decostate_t *ds, double start_depth, const gas_t *start_gas, const gas_t *deco_gasses, + int nof_gasses, const waypoint_callback_t *wp_cb); #endif /* end of include guard: SCHEDULE_H */ |