diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-14 11:05:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-14 11:05:41 -0500 |
commit | ed36b75a120830d835194fc793cfcb212ab67929 (patch) | |
tree | 0e51c73de28bc28584c6c4464261baa31b1f1125 /src/expr.h | |
parent | d59d9acbe3c458f240fc3fb406f5bd1dcd38a1c8 (diff) | |
download | bfs-ed36b75a120830d835194fc793cfcb212ab67929.tar.xz |
expr: Pack struct bfs_expr a bit
Diffstat (limited to 'src/expr.h')
-rw-r--r-- | src/expr.h | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -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. */ |