diff options
author | Guillem Jover <guillem@debian.org> | 2013-10-12 10:34:15 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-10-14 05:54:21 +0200 |
commit | 0c977fa968be04424ddfd33445b9e4d72348bfaf (patch) | |
tree | 0d82f24c15b9cc55f8b78c9fe453155502ddc783 /dpkg-split | |
parent | 50c1cb4d6e8b4c3ee739646f9df05992b806ea5e (diff) | |
download | dpkg-0c977fa968be04424ddfd33445b9e4d72348bfaf.tar.gz |
libdpkg: Add dpkg-based program startup and shutdown functions
These will perform any necessary action when starting and exiting a
dpkg-based program.
Diffstat (limited to 'dpkg-split')
-rw-r--r-- | dpkg-split/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dpkg-split/main.c b/dpkg-split/main.c index b599f760b..a62769ea3 100644 --- a/dpkg-split/main.c +++ b/dpkg-split/main.c @@ -22,7 +22,6 @@ #include <compat.h> #include <sys/types.h> -#include <sys/stat.h> #include <assert.h> #include <errno.h> @@ -160,9 +159,7 @@ int main(int argc, const char *const *argv) { bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - dpkg_set_progname(SPLITTER); - dpkg_set_report_buffer(stdout); - standard_startup(); + dpkg_program_init(SPLITTER); myopt(&argv, cmdinfos, printforhelp); admindir = dpkg_db_set_dir(admindir); @@ -175,7 +172,7 @@ int main(int argc, const char *const *argv) { m_output(stderr, _("<standard error>")); - standard_shutdown(); + dpkg_program_done(); return ret; } |