summaryrefslogtreecommitdiff
path: root/split
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2002-05-24 05:16:43 +0000
committerAdam Heath <doogie@debian.org>2002-05-24 05:16:43 +0000
commit3dc5dd229b5044494db300e6fef7fd47363ce0b6 (patch)
treed8e306ca1855e8a44edab574d8b0961de994b01d /split
parentf1b564bb025062e9229ebd27273893fd3743ef86 (diff)
downloaddpkg-3dc5dd229b5044494db300e6fef7fd47363ce0b6.tar.gz
New functions, standard_startup, standard_shutdown, that contain the most
common functions that all dpkg binaries call.
Diffstat (limited to 'split')
-rw-r--r--split/main.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/split/main.c b/split/main.c
index 6cbb0d3ed..0f9d77b0e 100644
--- a/split/main.c
+++ b/split/main.c
@@ -153,16 +153,7 @@ int main(int argc, const char *const *argv) {
int l;
char *p;
- setlocale(LC_ALL, "");
- bindtextdomain(PACKAGE, LOCALEDIR);
- textdomain(PACKAGE);
-
- if (setjmp(ejbuf)) { /* expect warning about possible clobbering of argv */
- error_unwind(ehflag_bombout); exit(2);
- }
- push_error_handler(&ejbuf,print_error_fatal,NULL);
-
- myopt(&argv,cmdinfos);
+ standard_startup(&ejbuf, argc, &argv, NULL, 0, cmdinfos);
if (!cipaction) badusage(_("need an action option"));
l= strlen(depotdir);
@@ -178,7 +169,6 @@ int main(int argc, const char *const *argv) {
if (ferror(stderr)) werr("stderr");
- set_error_display(NULL,NULL);
- error_unwind(ehflag_normaltidy);
+ standard_shutdown();
exit(0);
}