summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-14 11:05:41 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-14 11:05:41 -0500
commited36b75a120830d835194fc793cfcb212ab67929 (patch)
tree0e51c73de28bc28584c6c4464261baa31b1f1125
parentd59d9acbe3c458f240fc3fb406f5bd1dcd38a1c8 (diff)
downloadbfs-ed36b75a120830d835194fc793cfcb212ab67929.tar.xz
expr: Pack struct bfs_expr a bit
-rw-r--r--src/expr.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/expr.h b/src/expr.h
index 349e052..957b04a 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -136,21 +136,15 @@ struct bfs_expr {
/** The comparison mode. */
enum bfs_int_cmp int_cmp;
- /** Optional extra data. */
- union {
- /** -size data. */
- enum bfs_size_unit size_unit;
-
- /** Timestamp comparison data. */
- struct {
- /** The stat field to look at. */
- enum bfs_stat_field stat_field;
- /** The reference time. */
- struct timespec reftime;
- /** The time unit. */
- enum bfs_time_unit time_unit;
- };
- };
+ /** -size data. */
+ enum bfs_size_unit size_unit;
+
+ /** The stat field to look at. */
+ enum bfs_stat_field stat_field;
+ /** The time unit. */
+ enum bfs_time_unit time_unit;
+ /** The reference time. */
+ struct timespec reftime;
};
/** String comparisons. */