Remove unused have_head variable in possum.c
This commit is contained in:
@@ -183,7 +183,7 @@ BUILT_IN_DLL(pm_help)
|
|||||||
BUILT_IN_DLL(pm_read)
|
BUILT_IN_DLL(pm_read)
|
||||||
{
|
{
|
||||||
char *number, *s;
|
char *number, *s;
|
||||||
int num, have_head=0;
|
int num;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
msg_header *h = NULL;
|
msg_header *h = NULL;
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ BUILT_IN_DLL(pm_read)
|
|||||||
|
|
||||||
h = lindex(MBOX.headers, num-1);
|
h = lindex(MBOX.headers, num-1);
|
||||||
|
|
||||||
if (h && !have_head) {
|
if (h) {
|
||||||
put_it("%s", cparse(PM_PROMPT" %W<%YFrom%W>%n $0-", "%s", h->from));
|
put_it("%s", cparse(PM_PROMPT" %W<%YFrom%W>%n $0-", "%s", h->from));
|
||||||
put_it("%s", cparse(PM_PROMPT" %W<%YDate%W>%n $0-", "%s", h->date));
|
put_it("%s", cparse(PM_PROMPT" %W<%YDate%W>%n $0-", "%s", h->date));
|
||||||
put_it("%s", cparse(PM_PROMPT" %W<%YSubject%W>%n $0-", "%s", h->subject));
|
put_it("%s", cparse(PM_PROMPT" %W<%YSubject%W>%n $0-", "%s", h->subject));
|
||||||
@@ -211,7 +211,6 @@ BUILT_IN_DLL(pm_read)
|
|||||||
do {
|
do {
|
||||||
strchop(fgets(s, MAX_FBUFFER_SIZE, f));
|
strchop(fgets(s, MAX_FBUFFER_SIZE, f));
|
||||||
if (ishead(s)) {
|
if (ishead(s)) {
|
||||||
have_head = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
put_it("%s%s", cparse("%G|%n", NULL, NULL), s);
|
put_it("%s%s", cparse("%G|%n", NULL, NULL), s);
|
||||||
|
|||||||
Reference in New Issue
Block a user