From 6a103642c5a146785224c76d064e33acdee5dba8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 17 Jun 2016 23:31:48 +0100 Subject: [PATCH] fgrep: fix warning --- Applications/util/fgrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/util/fgrep.c b/Applications/util/fgrep.c index 55836908..25a2459f 100644 --- a/Applications/util/fgrep.c +++ b/Applications/util/fgrep.c @@ -195,7 +195,7 @@ void file_open(void) /* Use stdin if no file arguments are given on the command line. */ if (optarg == (char *) NULL || strcmp(optarg, "-") == 0) { fd_in = 0; - optarg = "stdin"; + optarg = (char *)"stdin"; } else if ((fd_in = open(optarg, O_RDONLY)) == -1) { fprintf(stderr, "%s: can't open %s\n", prog_name, optarg); exit(1); -- 2.34.1