summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 09:47:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 19:29:08 (GMT)
commitfd1d672300f36b2b06c2951ec450de0cf8f17797 (patch)
tree41ed0d3c4b16ac0afcd2e00b9e2f7f0f18d87433 /git-compat-util.h
parent58e4e5118ae3707b417a19e8dc9224ac25c3f32f (diff)
downloadgit-fd1d672300f36b2b06c2951ec450de0cf8f17797.zip
git-fd1d672300f36b2b06c2951ec450de0cf8f17797.tar.gz
git-fd1d672300f36b2b06c2951ec450de0cf8f17797.tar.bz2
usage.c: add warning_errno() and error_errno()
Similar to die_errno(), these functions will append strerror() automatically. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 4743954..76efb72 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -412,7 +412,9 @@ extern NORETURN void usagef(const char *err, ...) __attribute__((format (printf,
extern NORETURN void die(const char *err, ...) __attribute__((format (printf, 1, 2)));
extern NORETURN void die_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
extern int error(const char *err, ...) __attribute__((format (printf, 1, 2)));
+extern int error_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));
+extern void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
#ifndef NO_OPENSSL
#ifdef APPLE_COMMON_CRYPTO