summaryrefslogtreecommitdiff
path: root/git.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-26 14:14:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-26 14:14:03 -0400
commitb2e6b9900619358c59a18f3d91635ca9ea69b9b3 (patch)
tree3b6a79197668db2ce48b5ba81ff6d53d2070d70c /git.h
parentc51851396d81e08011bc4d37f7f096e753cc05cb (diff)
Make `date` a `time_t`.
Diffstat (limited to 'git.h')
-rw-r--r--git.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/git.h b/git.h
index aa64fff..9bbe0e7 100644
--- a/git.h
+++ b/git.h
@@ -3,6 +3,7 @@
#include <git2.h>
#include <stdint.h>
+#include <time.h>
typedef struct git_repo git_repo;
typedef struct pull_request pull_request;
@@ -36,7 +37,7 @@ struct pull_request {
char *desc; /* Description of the pull request. */
char *author; /* Author of the pull request. */
comment **comments; /* Comments of this pull reuqest. */
- int date; /* Date of creation. */
+ time_t date; /* Date of creation. */
uint8_t pr_type; /* Type of pull request. (0 = individual commit patches, 1 = remote branch) */
union {
file **patches; /* Patch files of pull request. */