summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-07-14 15:25:19 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-07-14 15:25:19 -0700
commitbe9b2e85f579c5eda7a8868ee9ebf0b268c5a181 (patch)
tree06230a905e34300df21ff7cea0702f01f1891cb8
parent2094955be1ef94a0ba3f7dcf64ae04c9575dbd9c (diff)
Delete unused Panic() function
-rw-r--r--dm_error.h1
-rw-r--r--error.c11
2 files changed, 0 insertions, 12 deletions
diff --git a/dm_error.h b/dm_error.h
index 102daa3..ecd6299 100644
--- a/dm_error.h
+++ b/dm_error.h
@@ -50,7 +50,6 @@ extern void LogError (char * fmt, ...) GCC_PRINTFLIKE(1,2);
extern void LogInfo (char * fmt, ...) GCC_PRINTFLIKE(1,2);
extern void LogOutOfMem (char * fmt, ...) GCC_PRINTFLIKE(1,2);
extern void LogPanic (char * fmt, ...) GCC_PRINTFLIKE(1,2);
-extern void Panic (char * mesg);
#endif /* _DM_ERROR_H_ */
diff --git a/error.c b/error.c
index 49cbd8e..a359256 100644
--- a/error.c
+++ b/error.c
@@ -104,17 +104,6 @@ void LogOutOfMem (char * fmt, ...)
fflush (stderr);
}
-void Panic (char *mesg)
-{
- int i;
-
- i = creat ("/dev/console", 0666);
- write (i, "panic: ", 7);
- write (i, mesg, strlen (mesg));
- exit (1);
-}
-
-
void Debug (char * fmt, ...)
{
char buf[1024];