aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-15 22:02:03 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-15 22:02:03 +0000
commit198296b9800168ccf016709382e4c71b28e11d08 (patch)
treef10d92633ee58cbad6d31c8f0d1a9f68c458d058 /pspax.c
parent- EM_ST19 does not appear to be defined on older uclibc/glibc installs (diff)
downloadpax-utils-198296b9800168ccf016709382e4c71b28e11d08.tar.gz
pax-utils-198296b9800168ccf016709382e4c71b28e11d08.tar.bz2
pax-utils-198296b9800168ccf016709382e4c71b28e11d08.zip
move common warn/warnf/err macros to paxelf.h
Diffstat (limited to 'pspax.c')
-rw-r--r--pspax.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/pspax.c b/pspax.c
index 6180675..a27bd58 100644
--- a/pspax.c
+++ b/pspax.c
@@ -41,18 +41,8 @@
#define PROC_DIR "/proc"
-static const char *rcsid = "$Id: pspax.c,v 1.10 2005/04/06 13:41:40 solar Exp $";
-
-
-/* helper functions for showing errors */
-#define argv0 "pspax" /*((*argv != NULL) ? argv[0] : __FILE__ "\b\b")*/
-#define warn(fmt, args...) \
- fprintf(stderr, "%s: " fmt "\n", argv0, ## args)
-#define err(fmt, args...) \
- do { \
- warn(fmt, ## args); \
- exit(EXIT_FAILURE); \
- } while (0)
+static const char *rcsid = "$Id: pspax.c,v 1.11 2005/04/15 22:02:03 vapier Exp $";
+#define argv0 "pspax"