Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Plough <matt.plough@gmail.com>2015-07-01 02:00:41 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-12 20:55:19 +0300
commit768f8be31c3fac1b0ed8f4d49cf7176a30586443 (patch)
tree93bce70b7e1e0417bd6f843e3ae2eea4d28da0ec /tests/blame
parent9126ccac969a8da85992f5e3a67b292e59d4d7d0 (diff)
Fix #3094 - improve use of portable size_t/ssize_t format specifiers.
The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c. For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate.
Diffstat (limited to 'tests/blame')
-rw-r--r--tests/blame/blame_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blame/blame_helpers.c b/tests/blame/blame_helpers.c
index 21cd1a615..b305ba1e3 100644
--- a/tests/blame/blame_helpers.c
+++ b/tests/blame/blame_helpers.c
@@ -4,7 +4,7 @@ void hunk_message(size_t idx, const git_blame_hunk *hunk, const char *fmt, ...)
{
va_list arglist;
- printf("Hunk %zd (line %d +%d): ", idx,
+ printf("Hunk %"PRIuZ" (line %d +%d): ", idx,
hunk->final_start_line_number, hunk->lines_in_hunk-1);
va_start(arglist, fmt);