X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=45f33c7f381a3ad858f3b846ebae1ba2985e721c;hb=2c3b7da72126a21f05130e9ed6bb70f43624ce25;hp=4e93a1ab93df0485670dcf3a8dca6263f4a8435b;hpb=9f9bfa91d88b3ca4cd9206c1f2b17c6d13ebcaba;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 4e93a1a..45f33c7 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -919,9 +919,6 @@ sendit(char *sp, char **arg, char *file, int pushed) #ifndef lint int distsw = 0; #endif -#ifdef UCI - FILE *fp; -#endif /* ** Make sure these are defined. In particular, we need @@ -1070,21 +1067,9 @@ sendit(char *sp, char **arg, char *file, int pushed) } } - if ((cp = getenv("SIGNATURE")) == NULL || *cp == 0) + if (!(cp = getenv("SIGNATURE")) || !*cp) if ((cp = context_find("signature")) && *cp) m_putenv("SIGNATURE", cp); -#ifdef UCI - else { - snprintf(buf, sizeof(buf), "%s/.signature", mypath); - if ((fp = fopen(buf, "r")) != NULL && - fgets(buf, sizeof(buf), fp) != NULL) { - fclose(fp); - if (cp = strchr(buf, '\n')) - *cp = 0; - m_putenv("SIGNATURE", buf); - } - } -#endif /* UCI */ if ((annotext = getenv("mhannotate")) == NULL || *annotext == 0) annotext = NULL;