X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e491542da563673b49c6f6df9948ffaffbeed4fb..b68ed2bccdade2c3ac04ca1005d261be89c71c51:/uip/scan.c diff --git a/uip/scan.c b/uip/scan.c index 932ffda0..20668691 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -13,7 +13,6 @@ #include #include #include -#include #define SCAN_SWITCHES \ X("clear", 0, CLRSW) \ @@ -38,12 +37,6 @@ DEFINE_SWITCH_ARRAY(SCAN, switches); #undef X -/* - * prototypes - */ -void clear_screen(void); /* from termsbr.c */ - - int main (int argc, char **argv) { @@ -59,13 +52,7 @@ main (int argc, char **argv) struct msgs *mp; FILE *in; -#ifdef LOCALE - setlocale(LC_ALL, ""); -#endif - invo_name = r1bindex (argv[0], '/'); - - /* read user profile/context */ - context_read(); + if (nmh_init(argv[0], 1)) { return 1; } mts_init (invo_name); arguments = getarguments (invo_name, argc, argv, 1); @@ -289,7 +276,7 @@ main (int argc, char **argv) ivector_free (seqnum); folder_free (mp); /* free folder/message structure */ if (clearflag) - clear_screen (); + nmh_clear_screen (); done (0); return 1;