summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2001-04-22 07:48:15 +0000
committerAdam Heath <doogie@debian.org>2001-04-22 07:48:15 +0000
commitc9bef0784a047c9ea984a4a68b610e32f73dee92 (patch)
tree34f34734301e4fac313aefa690e4ca679b7fbe35 /dpkg-deb
parent279bbbc9abb8ed5d7a84746adaaa5e99e6e02a1f (diff)
downloaddpkg-c9bef0784a047c9ea984a4a68b610e32f73dee92.tar.gz
Added macro NONRETURNING to several functions.
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/build.c2
-rw-r--r--dpkg-deb/extract.c1
-rw-r--r--dpkg-deb/main.c3
3 files changed, 6 insertions, 0 deletions
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 713c03a7c..beae6fa8f 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -142,6 +142,7 @@ static void free_filist(struct _finfo* fi) {
}
}
+int internalGzip(int fd1, int fd2, const char *compression, char *desc, ...) NONRETURNING;
int internalGzip(int fd1, int fd2, const char *compression, char *desc, ...) {
va_list al;
struct varbuf v;
@@ -197,6 +198,7 @@ int internalGzip(int fd1, int fd2, const char *compression, char *desc, ...) {
/* Overly complex function that builds a .deb file
*/
+void do_build(const char *const *argv) NONRETURNING;
void do_build(const char *const *argv) {
static const char *const maintainerscripts[]= {
PREINSTFILE, POSTINSTFILE, PRERMFILE, POSTRMFILE, 0
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index f93e5509c..46475e271 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -53,6 +53,7 @@ static void movecontrolfiles(const char *thing) {
waitsubproc(c1,"sh -c mv foo/* &c",0,0);
}
+static void readfail(FILE *a, const char *filename, const char *what) NONRETURNING;
static void readfail(FILE *a, const char *filename, const char *what) {
if (ferror(a)) {
ohshite(_("error reading %s from %.255s"),what,filename);
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 7da26b199..bb801fd48 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -86,9 +86,11 @@ const char* compression=NULL;
const struct cmdinfo *cipaction=0;
dofunction *action=0;
+static void helponly(const struct cmdinfo *cip, const char *value) NONRETURNING;
static void helponly(const struct cmdinfo *cip, const char *value) {
usage(); exit(0);
}
+static void versiononly(const struct cmdinfo *cip, const char *value) NONRETURNING;
static void versiononly(const struct cmdinfo *cip, const char *value) {
printversion(); exit(0);
}
@@ -138,6 +140,7 @@ static void setaction(const struct cmdinfo *cip, const char *value) {
action= dofunctions[cip-cmdinfos];
}
+int main(int argc, const char *const *argv) NONRETURNING;
int main(int argc, const char *const *argv) {
jmp_buf ejbuf;