summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2003-12-26 21:30:06 +0000
committerMartin Mares <mj@ucw.cz>2006-05-05 14:18:09 +0200
commit91e37a491b610fe05469fcc2342ac9be653cf06f (patch)
tree2350b0cc0ce39b81c23cb080de81811485b4b671 /common.c
parentb7351143a18cdcc60f1a1b3efef94864b0f61e9c (diff)
downloadpciutils-91e37a491b610fe05469fcc2342ac9be653cf06f.tar.gz
Introduced NONRET macro
pciutils.h, common.c, setpci.c: Introduced a NONRET macro encapsulating the GCC specific __attribute__((noreturn)) and killed the hack with redefining __attribute__ on non-GCC compilers. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-10
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 5b938dd..846b1e6 100644
--- a/common.c
+++ b/common.c
@@ -1,7 +1,7 @@
/*
* Linux PCI Utilities -- Common Functions
*
- * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -14,7 +14,7 @@
#include "pciutils.h"
-void __attribute__((noreturn))
+void NONRET
die(char *msg, ...)
{
va_list args;