X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;fp=uip%2Fsendsbr.c;h=8eb67cc8eae016e19d74f3f0688dc93aa1998edb;hp=b2a298cd04fc87a20762d890b9aa1b8a302750e0;hb=3a2993ae0a411209ac7d51180c781662139f882b;hpb=b9b14fd176e7146fb6d37485bb0eecb1753d0e0b diff --git a/uip/sendsbr.c b/uip/sendsbr.c index b2a298c..8eb67cc 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -478,20 +478,14 @@ sendaux(char **vec, int vecp, char *drft, struct stat *st) { pid_t child_id; int i, status, fd, fd2; - char backup[BUFSIZ], buf[BUFSIZ]; + char backup[BUFSIZ]; fd = pushsw ? tmp_fd() : NOTOK; fd2 = NOTOK; vec[vecp++] = drft; - if (annotext) { - if ((fd2 = tmp_fd()) != NOTOK) { - vec[vecp++] = "-idanno"; - snprintf(buf, sizeof(buf), "%d", fd2); - vec[vecp++] = buf; - } else { - admonish(NULL, "unable to create file for annotation list"); - } + if (annotext && (fd2 = tmp_fd()) == NOTOK) { + admonish(NULL, "unable to create file for annotation list"); } if (distfile && distout(drft, distfile, backup) == NOTOK) done(1); @@ -768,7 +762,7 @@ annoaux(int fd) if (is_selected(mp, msgnum)) { if (debugsw) advise(NULL, "annotate message %d", msgnum); - annotate(m_name (msgnum), annotext, cp, inplace, + annotate(m_name(msgnum), annotext, cp, inplace, 1, -2, 0); } }