mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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*.
This commit is contained in:
parent
dbadca9a63
commit
c777524834
1 changed files with 2 additions and 2 deletions
4
date.c
4
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;
|
||||
|
|
Loading…
Reference in a new issue