diff contrib/chg/util.h @ 28788:57a78a64de44

chg: add util function abortmsgerrno to print error with errno It's common to abortmsg with the errno information. Let's make a utility function for it.
author Jun Wu <quark@fb.com>
date Tue, 05 Apr 2016 17:25:39 +0100
parents ea86cdcd9b50
children ddef14468952
line wrap: on
line diff
--- a/contrib/chg/util.h	Tue Apr 05 14:48:09 2016 +0100
+++ b/contrib/chg/util.h	Tue Apr 05 17:25:39 2016 +0100
@@ -17,6 +17,7 @@
 #endif
 
 void abortmsg(const char *fmt, ...) PRINTF_FORMAT_;
+void abortmsgerrno(const char *fmt, ...) PRINTF_FORMAT_;
 
 void enablecolor(void);
 void enabledebugmsg(void);