INN commit: trunk/innd (tinyleaf.c)

INN Commit rra at isc.org
Tue Dec 1 19:32:55 UTC 2009


    Date: Tuesday, December 1, 2009 @ 11:32:54
  Author: eagle
Revision: 8834

Send a space rather than a blank line in tinyleaf HELP output

GCC format checking doesn't permit an empty format (""), which meant that
tinyleaf failed to compile since format checking was added to
nntp_send_line_noflush.  Work around this for the time being by sending
a single space on that line.

Modified:
  trunk/innd/tinyleaf.c

------------+
 tinyleaf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: tinyleaf.c
===================================================================
--- tinyleaf.c	2009-11-30 19:56:04 UTC (rev 8833)
+++ tinyleaf.c	2009-12-01 19:32:54 UTC (rev 8834)
@@ -172,7 +172,7 @@
     nntp_respond_noflush(state->nntp, NNTP_INFO_HELP, "tinyfeed from %s",
                          INN_VERSION_STRING);
     nntp_send_line_noflush(state->nntp, "Supported commands:");
-    nntp_send_line_noflush(state->nntp, "");
+    nntp_send_line_noflush(state->nntp, " ");
     nntp_send_line_noflush(state->nntp, "  IHAVE <message-id>");
     nntp_send_line_noflush(state->nntp, "  HELP");
     nntp_send_line_noflush(state->nntp, "  QUIT");




More information about the inn-committers mailing list