Patch for NNTP_Artnum_Type
Jörg Sommer <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi John, what do you think about this patch: commit 4b7e26ae916c61b33b670a7d2031f5fabe5bdbba Author: Jörg Sommer <[email protected]> Date: Thu Aug 28 12:09:31 2008 +0200 _nntp_num_or_msgid_cmd: Use NNTP_Artnum_Type for article number diff --git a/src/nntplib.c b/src/nntplib.c index ad77c8e..a78fdbf 100644 --- a/src/nntplib.c +++ b/src/nntplib.c @@ -824,10 +824,10 @@ int nntp_has_cmd (NNTP_Type *s, char *cmd) return _nntp_probe_server (s, cmd); } -static int _nntp_num_or_msgid_cmd (NNTP_Type *s, char *cmd, int n, char *msgid) +static int _nntp_num_or_msgid_cmd (NNTP_Type *s, char *cmd, NNTP_Artnum_Type n, char *msgid) { if ((n != -1) && ((Slrn_Broken_Xref == 0) || (msgid == NULL))) - return nntp_server_vcmd (s, "%s %d", cmd, n); + return nntp_server_vcmd (s, "%s " NNTP_FMT_ARTNUM, cmd, n); else if (msgid == NULL) return nntp_server_cmd(s, cmd); else Bye, Jörg. -- chinesiches Sprichwort: Wer fragt, ist ein Narr für fünf Minuten. Wer nicht fragt, ist ein Narr fürs ganze Leben. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/