diff options
author | Guillem Jover <guillem@debian.org> | 2008-12-06 19:05:10 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2008-12-09 05:49:28 +0200 |
commit | cb30ab1729f7cd1fa1620f4b9de3d2ed020bc238 (patch) | |
tree | 67647adef219683aab567033bf44c3e1fd1d615a /lib | |
parent | 40a15bdb0c74ec3c20fe46248fbdd27e3e242bc0 (diff) | |
download | dpkg-cb30ab1729f7cd1fa1620f4b9de3d2ed020bc238.tar.gz |
Properly use internerr to report about programming bugs
Use internerr for internal error conditions which happen only due to
programming bugs and should never occur, otherwise the code is wrong
and should be fixed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dump.c | 2 | ||||
-rw-r--r-- | lib/triglib.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/dump.c b/lib/dump.c index cb1089d61..1c77ea521 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -195,7 +195,7 @@ void w_status(struct varbuf *vb, assert(!AW); break; default: - abort(); + internerr("unknown package status '%d'", pigp->status); } #undef PEND #undef AW diff --git a/lib/triglib.c b/lib/triglib.c index 6da87096f..fd5f0aaeb 100644 --- a/lib/triglib.c +++ b/lib/triglib.c @@ -26,7 +26,6 @@ #include <dpkg-i18n.h> #include <assert.h> -#include <stdlib.h> #include <unistd.h> #include <errno.h> @@ -755,7 +754,7 @@ trig_incorporate(enum modstatdb_rw cstatus, const char *admindir) trigdef_yylex(); break; default: - abort(); + internerr("unknown trigdef_update_start return value '%d'", ur); } /* Right, that's it. New (empty) Unincorp can be installed. */ |