This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix ttynam for no-ttynam case


Committed to mainline.

        tq vm, (burley)


Fri Jun 18 11:38:07 1999  Craig Burley  <craig@jcb-sc.com>

	* libU77/ttynam_.c: if !defined (HAVE_TTYNAM),
	write all spaces into return value instead of trying
	to return -1 from a void function.

*** g77-e/libf2c/libU77/ttynam_.c.~1~	Sat Jan 31 20:37:08 1998
--- g77-e/libf2c/libU77/ttynam_.c	Fri Jun 18 11:36:22 1999
*************** extern void s_copy(register char *a, reg
*** 60,64 ****
  #else
    errno = ENOSYS;
!   return -1;
  #endif
  }
--- 60,64 ----
  #else
    errno = ENOSYS;
!   s_copy (ret_val, " ", ret_val_len, 1);
  #endif
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]