libdivecomputer already uses 'gasmix_t' for its own gasmix thing. I
don't like th eway we step on each others name spaces, but hey, might as
well just use 'struct gasmix' and avoid the typedef.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
*res = *b;
}
-static void merge_cylinder_mix(gasmix_t *res, gasmix_t *a, gasmix_t *b)
+static void merge_cylinder_mix(struct gasmix *res, struct gasmix *a, struct gasmix *b)
{
if (a->o2.permille)
b = a;
int grams;
} weight_t;
-typedef struct {
+struct gasmix {
fraction_t o2;
fraction_t he;
-} gasmix_t;
+};
typedef struct {
volume_t size;
typedef struct {
cylinder_type_t type;
- gasmix_t gasmix;
+ struct gasmix gasmix;
pressure_t start, end;
} cylinder_t;
memset(&tm, 0, sizeof(tm));
}
-static void sanitize_gasmix(gasmix_t *mix)
+static void sanitize_gasmix(struct gasmix *mix)
{
unsigned int o2, he;