From: Alan Cox Date: Fri, 17 Jun 2016 22:31:48 +0000 (+0100) Subject: fgrep: fix warning X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6a103642c5a146785224c76d064e33acdee5dba8;p=FUZIX.git fgrep: fix warning --- 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);