diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 00:59:11 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 00:59:11 +0200 |
commit | 6b5b93239eab623c786e1c537563a81a285ffbd2 (patch) | |
tree | da1a11ea6a886e812f5f7455d5e943adfb0b7d52 /client/common | |
parent | 4dc5c77d8236e0d2ce7aa4a82da3d8103ef9426b (diff) | |
download | bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.tar.gz bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.tar.bz2 bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.zip |
Use bools instead of ints
Diffstat (limited to 'client/common')
-rw-r--r-- | client/common/common.c | 6 | ||||
-rw-r--r-- | client/common/common.h | 12 |
2 files changed, 9 insertions, 9 deletions
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[]); |