summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorWaldek Maleska <w.maleska@gmail.com>2015-10-26 13:15:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-26 20:24:03 (GMT)
commitfdcdb778551b904d57c127d9a3546f6a7c8792d3 (patch)
treeadcc39758e0c2e43d4806a22206c86dd6073fcc1 /git-compat-util.h
parent56a1a3ab449df33268776a8b72a301d3ee67ad8d (diff)
downloadgit-fdcdb778551b904d57c127d9a3546f6a7c8792d3.zip
git-fdcdb778551b904d57c127d9a3546f6a7c8792d3.tar.gz
git-fdcdb778551b904d57c127d9a3546f6a7c8792d3.tar.bz2
Correct fscanf formatting string for I64u values
This fix is probably purely cosmetic because PRIuMAX is likely identical to SCNuMAX. Nevertheless, when using a function of the scanf() family, the correct interpolation to use is the latter, not the former. Signed-off-by: Waldek Maleska <w.maleska@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 6a16e20..33bb762 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -237,6 +237,10 @@ extern char *gitbasename(char *);
#define PRIuMAX "llu"
#endif
+#ifndef SCNuMAX
+#define SCNuMAX PRIuMAX
+#endif
+
#ifndef PRIu32
#define PRIu32 "u"
#endif