summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da56645)
raw | patch | inline | side by side (parent: da56645)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 15 Jul 2006 05:47:53 +0000 (22:47 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 15 Jul 2006 05:47:53 +0000 (22:47 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-log.c | patch | blob | history |
diff --git a/builtin-log.c b/builtin-log.c
index 705205331e5259a1dd643517d0d2983b426e1051..4052cc75bdb2e3915ff17af4d1dc59a3f84f99dd 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
#include "revision.h"
#include "log-tree.h"
#include "builtin.h"
+#include <time.h>
+#include <sys/time.h>
/* this is in builtin-diff.c */
void add_head(struct rev_info *revs);
const char *email_end = strrchr(committer, '>');
if(!email_start || !email_end || email_start > email_end - 1)
die("Could not extract email from committer identity.");
- snprintf(dest, length, "%s.%u.git.%.*s", base, time(NULL),
- email_end - email_start - 1, email_start + 1);
+ snprintf(dest, length, "%s.%lu.git.%.*s", base,
+ (unsigned long) time(NULL),
+ (int)(email_end - email_start - 1), email_start + 1);
}
int cmd_format_patch(int argc, const char **argv, char **envp)
int keep_subject = 0;
int ignore_if_in_upstream = 0;
int thread = 0;
- char *in_reply_to = NULL;
+ const char *in_reply_to = NULL;
struct diff_options patch_id_opts;
char *add_signoff = NULL;
char message_id[1024];