From: Yu Watanabe Date: Mon, 26 Feb 2024 01:37:32 +0000 (+0900) Subject: format-table: replace "(size_t) -1" with SIZE_MAX X-Git-Tag: v256-rc1~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46877eb149d5937f7b304db63711cb74178b10c9;p=thirdparty%2Fsystemd.git format-table: replace "(size_t) -1" with SIZE_MAX --- diff --git a/src/shared/format-table.h b/src/shared/format-table.h index 36e1f94ca0b..b169eb0ba5a 100644 --- a/src/shared/format-table.h +++ b/src/shared/format-table.h @@ -134,7 +134,7 @@ int table_set_sort_internal(Table *t, size_t first_column, ...); #define table_set_sort(...) table_set_sort_internal(__VA_ARGS__, SIZE_MAX) int table_set_reverse(Table *t, size_t column, bool b); int table_hide_column_from_display_internal(Table *t, ...); -#define table_hide_column_from_display(t, ...) table_hide_column_from_display_internal(t, __VA_ARGS__, (size_t) -1) +#define table_hide_column_from_display(t, ...) table_hide_column_from_display_internal(t, __VA_ARGS__, SIZE_MAX) int table_print(Table *t, FILE *f); int table_format(Table *t, char **ret);