diff options
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[]); |