aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-12 16:21:57 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-12 16:21:57 +0000
commit56949550025f447691b0f32632b35af4749da358 (patch)
treeb51bf757d54bfca2ed7a0bd8124f18e506c83d98 /src/utils.c
parentd4d29be0fa41c079ab0a9e11585f65ff5e2828cf (diff)
downloadcalcurse-56949550025f447691b0f32632b35af4749da358.tar.gz
calcurse-56949550025f447691b0f32632b35af4749da358.zip
stdbool header removed, unsigned type used instead
Diffstat (limited to 'src/utils.c')
-rwxr-xr-xsrc/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c
index 35fad59..66ee6d5 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/* $calcurse: utils.c,v 1.74 2009/07/05 20:33:25 culot Exp $ */
+/* $calcurse: utils.c,v 1.75 2009/07/12 16:22:01 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -690,7 +690,7 @@ check_time (char *string)
*/
void
draw_scrollbar (WINDOW *win, int y, int x, int length,
- int bar_top, int bar_bottom, bool hilt)
+ int bar_top, int bar_bottom, unsigned hilt)
{
mvwvline (win, bar_top, x, ACS_VLINE, bar_bottom - bar_top);
if (hilt)
@@ -779,17 +779,17 @@ mystrtol (const char *str)
/* Print the given option value with appropriate color. */
void
-print_bool_option_incolor (WINDOW *win, bool option, int pos_y, int pos_x)
+print_bool_option_incolor (WINDOW *win, unsigned option, int pos_y, int pos_x)
{
int color = 0;
char option_value[BUFSIZ] = "";
- if (option == true)
+ if (option == 1)
{
color = ATTR_TRUE;
strncpy (option_value, _("yes"), BUFSIZ);
}
- else if (option == false)
+ else if (option == 0)
{
color = ATTR_FALSE;
strncpy (option_value, _("no"), BUFSIZ);