From 4ddd2d8e16a1f83774ca2d60c007fb54892255e2 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 17 Oct 2024 14:21:41 +0200 Subject: [PATCH] pbio/imu: Drop redundant struct nesting. --- lib/pbio/include/pbio/geometry.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/pbio/include/pbio/geometry.h b/lib/pbio/include/pbio/geometry.h index 77e8e90e1..fdb62ca89 100644 --- a/lib/pbio/include/pbio/geometry.h +++ b/lib/pbio/include/pbio/geometry.h @@ -31,15 +31,13 @@ typedef enum { /** * Coordinate-like type with x, y, and z floating point values. */ -typedef struct _pbio_geometry_xyz_t { - union { - struct { - float x; /**< X coordinate.*/ - float y; /**< Y coordinate.*/ - float z; /**< Z coordinate.*/ - }; - float values[3]; +typedef union { + struct { + float x; /**< X coordinate.*/ + float y; /**< Y coordinate.*/ + float z; /**< Z coordinate.*/ }; + float values[3]; } pbio_geometry_xyz_t; /**