mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 11:33:14 +00:00
fix for unused results in mboxscan.c
This commit is contained in:
parent
43ee33a28d
commit
1ff3f84068
@ -220,7 +220,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
|
|
||||||
/* skip until \n */
|
/* skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
flag = 0; /* in the headers now */
|
flag = 0; /* in the headers now */
|
||||||
@ -236,7 +237,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
/* then search for new mail ("From ") */
|
/* then search for new mail ("From ") */
|
||||||
|
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
flag = 1; /* in the body now */
|
flag = 1; /* in the body now */
|
||||||
continue;
|
continue;
|
||||||
@ -253,7 +255,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
curr = curr->previous;
|
curr = curr->previous;
|
||||||
/* Skip until \n */
|
/* Skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -276,7 +279,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
curr->from[i] = '\0';
|
curr->from[i] = '\0';
|
||||||
/* skip until \n */
|
/* skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -295,7 +299,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
curr->from[i] = '\0';
|
curr->from[i] = '\0';
|
||||||
/* skip until \n */
|
/* skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -325,7 +330,8 @@ static void mbox_scan(char *args, char *output, size_t max_len)
|
|||||||
|
|
||||||
/* skip until \n */
|
/* skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, text_buffer_size, fp);
|
if (!fgets(buf, text_buffer_size, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user