comparison uip/pshsbr.c @ 12:441a2190cfae

Lion fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Apr 2012 13:10:49 +0900
parents a6481689f99c
children 3c5835cca094
comparison
equal deleted inserted replaced
11:5cf052bee63d 12:441a2190cfae
1 /* popsbr.c - POP client subroutines */ 1 /* popsbr.c - POP client subroutines */
2 #ifndef lint 2 #ifndef lint
3 static char ident[] = "@(#)$Id$"; 3 static char ident[] = "@(#)$Id: pshsbr.c,v 1.2 2006/12/05 18:18:13 kono Exp $";
4 #endif /* lint */ 4 #endif /* lint */
5 5
6 #if defined(NNTP) && !defined(PSHSBR) 6 #if defined(NNTP) && !defined(PSHSBR)
7 #undef NNTP 7 #undef NNTP
8 #endif 8 #endif
322 #endif 322 #endif
323 if (traverse (action, "LISTGROUP", /* provided by INN 1.4 */ 323 if (traverse (action, "LISTGROUP", /* provided by INN 1.4 */
324 0, 0, 0, 0) == OK) 324 0, 0, 0, 0) == OK)
325 return OK; 325 return OK;
326 if (traverse (action, "XHDR NONAME %d-%d", 326 if (traverse (action, "XHDR NONAME %d-%d",
327 (targ_t)xtnd_first, (targ_t)xtnd_last, 0, 0) == OK) 327 (targ_t)xtnd_first, (targ_t)xtnd_last, (char*)0, (char*)0) == OK)
328 return OK; 328 return OK;
329 329
330 status = NOTOK; 330 status = NOTOK;
331 for (msgno = xtnd_first; msgno <= xtnd_last; msgno++) 331 for (msgno = xtnd_first; msgno <= xtnd_last; msgno++)
332 if (pop_list(msgno, (int *) 0, &arg1, &arg2, (int *) 0) == OK) { 332 if (pop_list(msgno, (int *) 0, &arg1, &arg2, (int *) 0) == OK) {
419 int pop_retr (msgno, action) 419 int pop_retr (msgno, action)
420 int msgno, 420 int msgno,
421 (*action) (); 421 (*action) ();
422 { 422 {
423 #ifndef NNTP 423 #ifndef NNTP
424 return traverse (action, "RETR %d", (targ_t)msgno, 0, 0, 0); 424 return traverse (action, "RETR %d", (targ_t)msgno, (char*)0, (char*)0, (char*)0);
425 #else /* NNTP */ 425 #else /* NNTP */
426 return traverse (action, "ARTICLE %d", (targ_t)msgno, 0, 0, 0); 426 return traverse (action, "ARTICLE %d", (targ_t)msgno, (char*)0, (char*)0, (char*)0);
427 #endif /* NNTP */ 427 #endif /* NNTP */
428 } 428 }
429 429
430 430
431 /* VARARGS2 */ 431 /* VARARGS2 */
495 int msgno, 495 int msgno,
496 lines, 496 lines,
497 (*action) (); 497 (*action) ();
498 { 498 {
499 #ifndef NNTP 499 #ifndef NNTP
500 return traverse (action, "TOP %d %d", (targ_t)msgno, (targ_t)lines, 0, 0); 500 return traverse (action, "TOP %d %d", (targ_t)msgno, (targ_t)lines, (char*)0, (char*)0);
501 #else /* NNTP */ 501 #else /* NNTP */
502 return traverse (action, "HEAD %d", (targ_t)msgno, 0, 0, 0); 502 return traverse (action, "HEAD %d", (targ_t)msgno, (char*)0, (char*)0, (char*)0);
503 #endif /* NNTP */ 503 #endif /* NNTP */
504 } 504 }
505 505
506 506
507 #if defined(BPOP) || defined(NNTP) 507 #if defined(BPOP) || defined(NNTP)