public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e03319a
)
fgrep: fix warning
author
Alan Cox
<alan@linux.intel.com>
Fri, 17 Jun 2016 22:31:48 +0000
(23:31 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 17 Jun 2016 22:31:48 +0000
(23:31 +0100)
Applications/util/fgrep.c
patch
|
blob
|
history
diff --git
a/Applications/util/fgrep.c
b/Applications/util/fgrep.c
index
5583690
..
25a2459
100644
(file)
--- 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);