Browse code

Specify const char *

John Hawthorn authored on 21/09/2014 21:04:56
Showing 1 changed files

  • fzy.c index acb528d..bd40708 100644
... ...
@@ -203,8 +203,8 @@ static struct option longopts[] = {
203 203
 
204 204
 int main(int argc, char *argv[]){
205 205
 	int benchmark = 0;
206
-	char *initial_query = NULL;
207
-	char *tty_filename = "/dev/tty";
206
+	const char *initial_query = NULL;
207
+	const char *tty_filename = "/dev/tty";
208 208
 	char c;
209 209
 	while((c = getopt_long(argc, argv, "vhse:l:t:p:", longopts, NULL)) != -1){
210 210
 		switch(c){