diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-26 07:29:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-26 07:29:14 +0000 |
commit | 061dfc6edd70967c15cf25e2472936b60b45d16d (patch) | |
tree | 869621886d1a8d65f12c71b68b2fc87a2e2818aa /lib | |
parent | 483856a78f157e17bbc2405519be1d9a00b38adc (diff) | |
download | netpbm-mirror-061dfc6edd70967c15cf25e2472936b60b45d16d.tar.gz netpbm-mirror-061dfc6edd70967c15cf25e2472936b60b45d16d.tar.xz netpbm-mirror-061dfc6edd70967c15cf25e2472936b60b45d16d.zip |
Eliminate pm_perror() in favor of informative error messages
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@20 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpm.c | 12 | ||||
-rw-r--r-- | lib/pm.h | 4 |
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/libpm.c b/lib/libpm.c index 2e563a09..978657a9 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -114,18 +114,6 @@ pm_usage(const char usage[]) { -void -pm_perror(const char reason[] ) { - - if (reason != NULL && strlen(reason) != 0) - pm_error("%s - errno=%d (%s)", reason, errno, strerror(errno)); - else - pm_error("Something failed with errno=%d (%s)", - errno, strerror(errno)); -} - - - void PM_GNU_PRINTF_ATTR(1,2) pm_message(const char format[], ...) { diff --git a/lib/pm.h b/lib/pm.h index 040a6a4b..199d47f2 100644 --- a/lib/pm.h +++ b/lib/pm.h @@ -160,10 +160,6 @@ pm_message (const char format[], ...); void PM_GNU_PRINTF_ATTR(1,2) pm_error (const char reason[], ...); -/* Obsolete - use helpful error message instead */ -void -pm_perror (const char reason[]); - /* Obsolete - use shhopt and user's manual instead */ void pm_usage (const char usage[]); |