gtalk (0.99.10-15) src/gtalk/gt_display.c

Summary

 src/gtalk/gt_display.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

    
download this patch

Patch contents

--- gtalk-0.99.10.orig/src/gtalk/gt_display.c
+++ gtalk-0.99.10/src/gtalk/gt_display.c
@@ -884,7 +884,7 @@
    * This is the same method as using a Socket. */
   if((!BkCtxt) || (BkCtxt->runstate == Socket))
     {
-      printf(message);
+      puts(message);
       if(message[strlen(message)] != '\n')
 	printf("\n");
     }
@@ -1008,6 +1008,8 @@
 #endif /* NO_IFACE */
 
 
+static void DISP_prompt(struct TalkContext *Ctxt, char in);
+
 /*
  * Function: DISP_reset_any_prompts
  *
@@ -1022,8 +1024,6 @@
 void DISP_reset_any_prompts(Ctxt)
      struct TalkContext *Ctxt;
 {
-  static void DISP_prompt(struct TalkContext *Ctxt, char in);
-
   /* If in a prompt, erase it */
   if(state == PROMPT) DISP_prompt(Ctxt, 21);
   state = TALKMODE;
@@ -1336,9 +1336,7 @@
     }
 }
 
-static void DISP_prompt(Ctxt, in)
-     struct TalkContext *Ctxt;
-     char in;
+static void DISP_prompt(struct TalkContext *Ctxt, char in)
 {
 #define COLLECTSIZE 80
   static char collect[COLLECTSIZE] = "";