summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-19 13:11:57 -0700
committerCarl Worth <cworth@cworth.org>2009-10-19 13:11:57 -0700
commitc777524834a805476d0dce81b42342dca4702893 (patch)
treeaa67a13e9e4cc3be8d179b9564363b60a2e42f53 /date.c
parentdbadca9a63ce9e97dc2d80fb0fee7ba2f8640316 (diff)
date.c: Remove occurrences of gboolean.
While this is surely one of the most innocent typedefs, it still annoys me to have basic types like 'int' re-defined like this. It just makes it harder to copy the code between projects, with very little benefit in readability. For readability, predicate functions and variables should be obviously Boolean-natured by their actual *names*.
Diffstat (limited to 'date.c')
-rw-r--r--date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/date.c b/date.c
index 016af4e..102d688 100644
--- a/date.c
+++ b/date.c
@@ -292,7 +292,7 @@ get_year (const char *in, size_t inlen)
return year;
}
-static gboolean
+static int
get_time (const char *in, size_t inlen, int *hour, int *min, int *sec)
{
register const char *inptr;
@@ -486,7 +486,7 @@ parse_rfc822_date (date_token *tokens, int *tzone)
static time_t
parse_broken_date (date_token *tokens, int *tzone)
{
- gboolean got_wday, got_month, got_tzone;
+ int got_wday, got_month, got_tzone;
int hour, min, sec, offset, n;
date_token *token;
struct tm tm;