Changes to gnats/gnats/cmds.c

"Andrew J. Gray" <[email protected]> Sat, 30 Aug 2003 03:58:14 -0400
Newsgroups gmane.comp.bug-tracking.gnats.patches
Message-ID <[email protected]>
Index: gnats/gnats/cmds.c
diff -c gnats/gnats/cmds.c:1.70 gnats/gnats/cmds.c:1.71
*** gnats/gnats/cmds.c:1.70	Mon Oct 14 07:42:25 2002
--- gnats/gnats/cmds.c	Sat Aug 30 03:58:14 2003
***************
*** 478,483 ****
--- 478,484 ----
    char *tempfile;
    FILE *fp;
    ErrorDesc err;
+   int new_pr_num;
  
    if (ac != 0)
      {
***************
*** 507,515 ****
      {
        if (daemon_lock_gnats (FALSE) == 0)
  	{
! 	  if (submit_pr (currentDatabase, fp, &err) != 0)
  	    {
! 	      printf ("%d PR added.\r\n", CODE_OK);
  	      fflush (stdout);
  	    }
  	  else
--- 508,518 ----
      {
        if (daemon_lock_gnats (FALSE) == 0)
  	{
! 	  if ((new_pr_num = submit_pr (currentDatabase, fp, &err)) != 0)
  	    {
! 	      printf ("%d-The added PR number is:\r\n",
! 		      CODE_INFORMATION_FILLER);
! 	      printf ("%d %d\r\n", CODE_INFORMATION, new_pr_num);
  	      fflush (stdout);
  	    }
  	  else