X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=9b9346e155ffac2a93b35c8d00afb764a190f24e;hp=7106e97f7603dfda2b831db84f979a451f742945;hb=9b87576a7ebf2e52a7ca6a0e2dba12fa24bd34dd;hpb=6c248aa3490f9c948da1bcfe49bdf8d7ba25e372 diff --git a/init.c b/init.c index 7106e97..9b9346e 100644 --- a/init.c +++ b/init.c @@ -433,9 +433,7 @@ int query_quadoption2(int v, const char *prompt) return (v); default: - v = mutt_yesorno(prompt, (v == M_ASKYES)); - CLEARLINE(main_w, LINES - 1); - return (v); + return mutt_yesorno(prompt, (v == M_ASKYES)); } } @@ -449,12 +447,8 @@ int query_quadoption (int opt, const char *prompt) return (v); default: - v = mutt_yesorno (prompt, (v == M_ASKYES)); - CLEARLINE(main_w, LINES - 1); - return (v); + return mutt_yesorno(prompt, (v == M_ASKYES)); } - - /* not reached */ } /* always wise to do what someone else did before */ @@ -882,7 +876,7 @@ static void mutt_set_default(const char *name __attribute__ ((unused)), void* p, return; mutt_option_value(ptr->option, buf, sizeof(buf)); - if (m_strlen(ptr->init) == 0 && buf && *buf) + if (m_strlen(ptr->init) == 0 && *buf) ptr->init = m_strdup(buf); } @@ -1655,27 +1649,6 @@ void mutt_init (int skip_sys_rc, string_list_t * commands) Realname = m_strdup(rnbuf); } -#ifdef USE_NNTP - { - FILE *f; - char *q; - - if ((f = safe_fopen (SYSCONFDIR "/nntpserver", "r"))) { - buffer[0] = '\0'; - fgets (buffer, sizeof(buffer), f); - p = vskipspaces(buffer); - q = (char*)p; - while (*q && !isspace(*q)) - q++; - *q = '\0'; - NewsServer = m_strdup(p); - m_fclose(&f); - } - } - if ((p = getenv ("NNTPSERVER"))) - NewsServer = m_strdup(p); -#endif - if ((p = getenv("MAIL") ?: getenv("MAILDIR"))) { Spoolfile = m_strdup(p); } else { @@ -1794,13 +1767,3 @@ void mutt_init (int skip_sys_rc, string_list_t * commands) } } -int mutt_get_hook_type (const char *name) -{ - struct command_t *c; - - for (c = Commands; c->name; c++) - if (c->func == mutt_parse_hook && ascii_strcasecmp (c->name, name) == 0) - return c->data; - return 0; -} -