X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fscansbr.c;h=4b712432cec19d13c833f0fd62e7578557e92d89;hp=a43044c8a637b76264afd89969569069ff0d5527;hb=064527f7b57ab050e5af13e15ad99aeeab125857;hpb=5a54c825a4c672e712e40c4c5ed0f0883fc99913 diff --git a/uip/scansbr.c b/uip/scansbr.c index a43044c..4b71243 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -71,7 +71,7 @@ int scan(FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, int unseen, char *folder, long size, int noisy) { - int i, compnum, encrypted, state; + int i, compnum, state; unsigned char *cp, *tmpbuf; char **nxtbuf; char *saved_c_text = NULL; @@ -109,14 +109,6 @@ scan(FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, FINDCOMP(cptr, "folder"); if (cptr && folder) cptr->c_text = folder; - FINDCOMP(cptr, "encrypted"); - if (!cptr) - if ((cptr = (struct comp *)calloc(1, sizeof(*cptr)))) { - cptr->c_name = "encrypted"; - cptr->c_next = wantcomp[i = CHASH(cptr->c_name)]; - wantcomp[i] = cptr; - ncomps++; - } FINDCOMP(cptr, "dtimenow"); if (cptr) cptr->c_text = getcpy(dtimenow(0)); @@ -348,9 +340,6 @@ finished: if (noisy) fputs(scanl, stdout); - FINDCOMP(cptr, "encrypted"); - encrypted = cptr && cptr->c_text; - /* return dynamically allocated buffers to pool */ while ((cptr = *savecomp++)) { *--nxtbuf = cptr->c_text; @@ -361,7 +350,7 @@ finished: if (outnum && (ferror(scnout) || fclose(scnout) == EOF)) DIEWRERR(); - return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG); + return (state != FILEEOF ? SCNERR : SCNMSG); } static int