comparison regexParser/sequentialSearch.cc @ 240:6ed6f385205e

fix fd
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Wed, 20 Jan 2016 18:20:48 +0900
parents 1a34e702776a
children a3cddb32b87f
comparison
equal deleted inserted replaced
239:f5931151d70c 240:6ed6f385205e
27 if (strcmp(argv[i],"-file") == 0) { 27 if (strcmp(argv[i],"-file") == 0) {
28 filename = argv[i+1]; i++; 28 filename = argv[i+1]; i++;
29 } 29 }
30 } 30 }
31 31
32 int fd; 32 int fd = 0;
33 st_mmap_t st_mmap = createSt_mmap(filename,fd); 33 st_mmap_t st_mmap = createSt_mmap(filename,fd);
34 Buffer buff = createBuffer(st_mmap); 34 Buffer buff = createBuffer(st_mmap);
35 stateSkip(buff); 35 stateSkip(buff);
36 close(fd); 36 close(fd);
37 return 0; 37 return 0;