Compare commits
2 Commits
21ee79a929
...
47ecf87e16
Author | SHA1 | Date | |
---|---|---|---|
47ecf87e16 | |||
8374b34834 |
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h> /* sigaction(2), signal(2), struct sigaction, SIGINT */
|
#include <signal.h> /* sigaction(2), signal(2), struct sigaction, SIGINT */
|
||||||
|
#include <stdbool.h> /* bool */
|
||||||
#include <stdio.h> /* fprintf(3), fgetc(3), perror(3), fputc(3), stderr, stdin,
|
#include <stdio.h> /* fprintf(3), fgetc(3), perror(3), fputc(3), stderr, stdin,
|
||||||
* stdout, EOF, NULL */
|
* stdout, EOF, NULL */
|
||||||
#include <stdlib.h> /* exit(3), EXIT_FAILURE */
|
#include <stdlib.h> /* exit(3), EXIT_FAILURE */
|
||||||
@ -70,7 +71,7 @@ int main(int argc, char *argv[]){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argc > 0) { /* option parsing */
|
if (argc > 0) { /* option parsing */
|
||||||
char allow_nonterminals;
|
bool allow_nonterminals;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
program_name = argv[0];
|
program_name = argv[0];
|
||||||
@ -88,7 +89,8 @@ int main(int argc, char *argv[]){
|
|||||||
if (!allow_nonterminals && isatty(STDIN_FILENO) != 1) {
|
if (!allow_nonterminals && isatty(STDIN_FILENO) != 1) {
|
||||||
(void)fprintf(
|
(void)fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"%s: Must be run in a terminal (option -i skips this check)\n",
|
"%s: Must be run in a terminal (specify -i to skip this"
|
||||||
|
" check)\n",
|
||||||
argv[0]
|
argv[0]
|
||||||
);
|
);
|
||||||
return EX_USAGE;
|
return EX_USAGE;
|
||||||
|
Loading…
Reference in New Issue
Block a user