gnats-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to gnats/gnats/client.c


From: Andrew J. Gray
Subject: Changes to gnats/gnats/client.c
Date: Sat, 30 Aug 2003 03:58:14 -0400

Index: gnats/gnats/client.c
diff -c gnats/gnats/client.c:1.46 gnats/gnats/client.c:1.47
*** gnats/gnats/client.c:1.46   Mon Nov 25 08:58:33 2002
--- gnats/gnats/client.c        Sat Aug 30 03:58:14 2003
***************
*** 329,340 ****
                }
              else
                {
!                 read_server (outfp);
                }
              break;
  
            case CODE_INFORMATION:
!             fprintf (outfp, "%s\n", r->text);
              break;
  
            case CODE_NONEXISTENT_PR:
--- 329,348 ----
                }
              else
                {
!                 if (outfp != NULL)
!                   read_server (outfp);
!                 else
!                   {
!                     fprintf (stderr, "%s: unexpected %d received\n",
!                              program_name, r->state);
!                     safe_exit();
!                   }
                }
              break;
  
            case CODE_INFORMATION:
!             if (outfp != NULL)
!               fprintf (outfp, "%s\n", r->text);
              break;
  
            case CODE_NONEXISTENT_PR:
***************
*** 1216,1222 ****
  }
  
  static void
! netSendPRCmd (const char *cmd, FILE *file)
  {
    char *line;
    if (debug)
--- 1224,1230 ----
  }
  
  static void
! netSendPRCmd (const char *cmd, FILE *file, int show_information)
  {
    char *line;
    if (debug)
***************
*** 1233,1245 ****
      }
    fprintf (serv_write, ".\r\n");
    /* if get_reply finds errors it writes messages and doesn't return */
!   get_reply (stdout);
  }
  
  void
  netCheckPR (FILE *file, int initial)
  {
!   netSendPRCmd (initial ? "CHEK INIT" : "CHEK", file);
  }
  
  void
--- 1241,1253 ----
      }
    fprintf (serv_write, ".\r\n");
    /* if get_reply finds errors it writes messages and doesn't return */
!   get_reply (show_information ? stdout : NULL);
  }
  
  void
  netCheckPR (FILE *file, int initial)
  {
!   netSendPRCmd (initial ? "CHEK INIT" : "CHEK", file, 1);
  }
  
  void
***************
*** 1298,1306 ****
  }
  
  void
! netSubmitNewPR (FILE *file)
  {
!   netSendPRCmd ("SUBM", file);
  }
  
  void
--- 1306,1314 ----
  }
  
  void
! netSubmitNewPR (FILE *file, int show_prnum)
  {
!   netSendPRCmd ("SUBM", file, show_prnum);
  }
  
  void
***************
*** 1310,1316 ****
  
    netSetEditEmailAddr (editEmailAddr);
    asprintf (&buf, "EDIT %s", prNum);
!   netSendPRCmd (buf, file);
    free (buf);
  }
  
--- 1318,1324 ----
  
    netSetEditEmailAddr (editEmailAddr);
    asprintf (&buf, "EDIT %s", prNum);
!   netSendPRCmd (buf, file, 1);
    free (buf);
  }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]