summaryrefslogtreecommitdiff
path: root/pith/news.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
committerEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
commit2695b63fbe6c6a2206a2637137c6cd654f69943a (patch)
tree717008efdac9ae66bf33985dc99ee68aea45bf11 /pith/news.c
parent36b77661542a63c4579943951d143c8cc9c99460 (diff)
downloadalpine-2695b63fbe6c6a2206a2637137c6cd654f69943a.tar.xz
* Clear even more warnings from clang 3.5 and MAC OSX.
Diffstat (limited to 'pith/news.c')
-rw-r--r--pith/news.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pith/news.c b/pith/news.c
index 0c90d3af..ea1982cf 100644
--- a/pith/news.c
+++ b/pith/news.c
@@ -221,9 +221,9 @@ news_grouper(char *given_group, char **expanded_group, char **error,
*/
for(server = ps_global->VAR_NNTP_SERVER;
server && *server && **server;
- server++){
+ server++){ /* MAILTMPLEN = sizeof(ng_ref) */
snprintf(ng_ref, sizeof(ng_ref), "{%.*s/nntp}#news.",
- sizeof(ng_ref)-30, *server);
+ MAILTMPLEN-30, *server);
if((stream = pine_mail_open(stream, ng_ref,
OP_HALFOPEN|SP_USEPOOL|SP_TEMPUSE,
NULL)) != NULL)
@@ -267,10 +267,10 @@ news_grouper(char *given_group, char **expanded_group, char **error,
* interface...
*/
for(ntmp = nglist; ntmp; ntmp = ntmp->next){
- if(ntmp->found == NotInCache){
+ if(ntmp->found == NotInCache){ /* MAILTMPLEN = sizeof(ng_ref) */
snprintf(ng_ref, sizeof(ng_ref), "{%.*s/nntp}#news.%.*s",
- sizeof(ng_ref)/2 - 10, *server,
- sizeof(ng_ref)/2 - 10, ntmp->groupname);
+ MAILTMPLEN/2 - 10, *server,
+ MAILTMPLEN/2 - 10, ntmp->groupname);
ps_global->noshow_error = 1;
stream = pine_mail_open(stream, ng_ref,
OP_SILENT|SP_USEPOOL|SP_TEMPUSE,