Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-crg.llnl.gov!casey From: casey@lll-crg.llnl.gov (Casey Leedom) Newsgroups: comp.windows.x Subject: contrib: clients/xmessage Summary: xmessage contains some duplicate code Message-ID: <16551@lll-winken.LLNL.GOV> Date: 13 Jan 89 04:01:18 GMT Sender: usenet@lll-winken.LLNL.GOV Reply-To: casey@lll-crg.llnl.gov (Casey Leedom) Organization: Lawrence Livermore National Laboratory Lines: 24 *** clients/xmessage/init.c-dist Fri Oct 21 11:53:50 1988 --- clients/xmessage/init.c Fri Dec 30 19:52:15 1988 *************** *** 130,148 **** "other device."); PrintError(FALSE, warn_buf); } - - /* - * If we are using stdin, make sure that it is not connected to the tty, - * this is not a useful state of affairs. - */ - - if (ioctl( fileno(stdin), TIOCGETP, &garbage) == 0) { - char warn_buf[BUFSIZ]; - sprintf(warn_buf, "%s %s %s", "Standard Input (stdin) may not come from", - "a tty.\n It must come from a pipe, file or ", - "other device."); - PrintError(FALSE, warn_buf); - } } /* Function Name: PrintArgs --- 130,135 ----