From 6b5b93239eab623c786e1c537563a81a285ffbd2 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 18 Jan 2015 00:59:11 +0200 Subject: Use bools instead of ints --- client/common/common.c | 6 +++--- client/common/common.h | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'client/common') diff --git a/client/common/common.c b/client/common/common.c index ef25280..e8ad262 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -156,7 +156,7 @@ parse_args(struct client *client, int *argc, char **argv[]) client->filter_mode = BM_FILTER_MODE_DMENU_CASE_INSENSITIVE; break; case 'w': - client->wrap = 1; + client->wrap = true; break; case 'l': client->lines = strtol(optarg, NULL, 10); @@ -172,10 +172,10 @@ parse_args(struct client *client, int *argc, char **argv[]) break; case 'b': - client->bottom = 1; + client->bottom = true; break; case 'f': - client->grab = 1; + client->grab = true; break; case 'm': client->monitor = strtol(optarg, NULL, 10); diff --git a/client/common/common.h b/client/common/common.h index fa2025c..fab8758 100644 --- a/client/common/common.h +++ b/client/common/common.h @@ -5,16 +5,16 @@ struct client { enum bm_filter_mode filter_mode; - int32_t wrap; - uint32_t lines; const char *colors[BM_COLOR_LAST]; const char *title; const char *prefix; const char *font; - int32_t selected; - int32_t bottom; - int32_t grab; - int32_t monitor; + uint32_t lines; + uint32_t selected; + uint32_t monitor; + bool bottom; + bool grab; + bool wrap; }; void parse_args(struct client *client, int *argc, char **argv[]); -- cgit v1.2.3-70-g09d2