From 80d2b005249b772e7cd7fdf763e217576d401823 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 28 Apr 2011 15:04:46 +0800 Subject: use errno --- utils/storage/gen_binary_files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/storage/gen_binary_files.cpp') diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp index 757b075..f8d3c70 100644 --- a/utils/storage/gen_binary_files.cpp +++ b/utils/storage/gen_binary_files.cpp @@ -68,7 +68,7 @@ int main(int argc, char * argv[]){ FILE* infile = fopen("../../data/gb_char.table", "r"); if ( NULL == infile ){ printf("open gb_char.table failed!\n"); - exit(1); + exit(ENOENT); } phrase_index.load_text(1, infile); @@ -77,7 +77,7 @@ int main(int argc, char * argv[]){ infile = fopen("../../data/gbk_char.table", "r"); if ( NULL == infile ){ printf("open gbk_char.table failed!\n"); - exit(1); + exit(ENOENT); } phrase_index.load_text(2, infile); -- cgit