projects
/
libjh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add JH_ATTR_NORETURN
[libjh.git]
/
error.c
diff --git
a/error.c
b/error.c
index
9727253
..
3860944
100644
(file)
--- a/
error.c
+++ b/
error.c
@@
-1,5
+1,4
@@
// Copyright (2013) Jann Horn <jann@thejh.net>
// Copyright (2013) Jann Horn <jann@thejh.net>
-// This code is licensed under the AGPLv3.
// This file contains stuff for making error-handling easier.
// This file contains stuff for making error-handling easier.
@@
-8,7
+7,7
@@
#define GENERIC_ERROR \
"unexpected generic failure of some kind"
#define GENERIC_ERROR \
"unexpected generic failure of some kind"
-PUBLIC_FN void xperror(const char *s, int show_errno) {
+PUBLIC_FN void xperror(const char *s, int show_errno)
JH_ATTR_NORETURN
{
if (!s) s=GENERIC_ERROR;
if (show_errno) {
perror(s);
if (!s) s=GENERIC_ERROR;
if (show_errno) {
perror(s);