summaryrefslogtreecommitdiff
path: root/dpkg-split/split.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-16 14:22:34 +0100
committerGuillem Jover <guillem@debian.org>2011-04-02 02:38:09 +0200
commitba372a8c554dfe6fa4f0e12961efab6b10aaf6bd (patch)
tree7b39cd5b13cb0139bbe2a3e2f4ea4fa66545cc42 /dpkg-split/split.c
parentf6600ffa162e6f2f04f6a10d9622bee3bc8781a1 (diff)
downloaddpkg-ba372a8c554dfe6fa4f0e12961efab6b10aaf6bd.tar.gz
Make all command line action functions return int
This will allow using type-safe function pointers instead of casting them around. Replace all exit(3) calls with return statements. Remove DPKG_ATTR_NORET from function declarations, all functions are expected to return now.
Diffstat (limited to 'dpkg-split/split.c')
-rw-r--r--dpkg-split/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index 6727ed56f..296d1ebf2 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -237,7 +237,7 @@ mksplit(const char *file_src, const char *prefix, off_t maxpartsize,
return 0;
}
-void
+int
do_split(const char *const *argv)
{
const char *sourcefile, *prefix;
@@ -264,5 +264,5 @@ do_split(const char *const *argv)
mksplit(sourcefile, prefix, opt_maxpartsize, opt_msdos);
- exit(0);
+ return 0;
}