commit - bfa12d5e80568029d33f5d0f2e9cee54bc20db27
commit + 1367695b58142d73ad701f34f04fe45c4ad2782b
blob - 7b11e29ef0e1d99c72f6544888fcce187e4467ea
blob + d493fceb5e36c0e2b7129cfa0950467e1fba2e30
--- got/got.c
+++ got/got.c
}
fprintf(outfile, "%s%s %lld +0000\n", GOT_COMMIT_LABEL_AUTHOR,
got_object_commit_get_author(commit),
- got_object_commit_get_author_time(commit));
+ (long long)got_object_commit_get_author_time(commit));
fprintf(outfile, "%s%s %lld +0000\n", GOT_COMMIT_LABEL_COMMITTER,
got_object_commit_get_author(commit),
- got_object_commit_get_committer_time(commit));
+ (long long)got_object_commit_get_committer_time(commit));
logmsg = got_object_commit_get_logmsg_raw(commit);
fprintf(outfile, "messagelen %zd\n", strlen(logmsg));
fprintf(outfile, "%s%s %lld +0000\n", GOT_TAG_LABEL_TAGGER,
got_object_tag_get_tagger(tag),
- got_object_tag_get_tagger_time(tag));
+ (long long)got_object_tag_get_tagger_time(tag));
tagmsg = got_object_tag_get_message(tag);
fprintf(outfile, "messagelen %zd\n", strlen(tagmsg));
blob - 73b108d609463ae2121d561cbfcf7c2bc6924d2b
blob + a1f3f64950abf6a28988d7499f93bc440c52d438
--- lib/object_create.c
+++ lib/object_create.c
}
if (asprintf(&header, "%s %lld", GOT_OBJ_LABEL_BLOB,
- sb.st_size) == -1) {
+ (long long)sb.st_size) == -1) {
err = got_error_from_errno("asprintf");
goto done;
}
}
if (asprintf(&author_str, "%s%s %lld +0000\n",
- GOT_COMMIT_LABEL_AUTHOR, author, author_time) == -1)
+ GOT_COMMIT_LABEL_AUTHOR, author, (long long)author_time) == -1)
return got_error_from_errno("asprintf");
if (asprintf(&committer_str, "%s%s %lld +0000\n",
GOT_COMMIT_LABEL_COMMITTER, committer ? committer : author,
- committer ? committer_time : author_time)
+ (long long)(committer ? committer_time : author_time))
== -1) {
err = got_error_from_errno("asprintf");
goto done;
}
if (asprintf(&tagger_str, "%s%s %lld +0000\n",
- GOT_TAG_LABEL_TAGGER, tagger, tagger_time) == -1)
+ GOT_TAG_LABEL_TAGGER, tagger, (long long)tagger_time) == -1)
return got_error_from_errno("asprintf");
msg0 = strdup(tagmsg);
blob - 2a929a4ab71f2ead616af3510f5381d8284396b6
blob + 5288649cc83bfaff88b857271cffd172e4221974
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
free(data);
break;
}
- if (asprintf(&header, "%s %lld", obj_label, obj->size) == -1) {
+ if (asprintf(&header, "%s %lld", obj_label,
+ (long long)obj->size) == -1) {
err = got_error_from_errno("asprintf");
free(data);
break;
blob - 2ae503c4da4198a918f6bbb1bed217eb6bbba8b0
blob + df2c1d75f7705837e1cd37d49b209df5a83700c3
--- libexec/got-read-gotconfig/parse.y
+++ libexec/got-read-gotconfig/parse.y
typedef struct {
union {
- int64_t number;
+ long long number;
char *string;
struct node_branch *branch;
} v;