diff options
author | Peng Wu <alexepico@gmail.com> | 2012-06-26 12:34:54 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-06-26 12:34:54 +0800 |
commit | 8f8fb50a3d8bd31cb62d02299892343e993e49a6 (patch) | |
tree | 10b76c03d2e94bd165b53d4ee1c3654c1aa86aed /src/storage/ngram.cpp | |
parent | ddb8803e219bf4189f9a0105af7189b8c31c5d06 (diff) | |
download | libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.tar.gz libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.tar.xz libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.zip |
begin to write import iterator
Diffstat (limited to 'src/storage/ngram.cpp')
-rw-r--r-- | src/storage/ngram.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp index a15ed32..d366192 100644 --- a/src/storage/ngram.cpp +++ b/src/storage/ngram.cpp @@ -274,7 +274,7 @@ bool Bigram::load_db(const char * dbfile){ bool Bigram::save_db(const char * dbfile){ DB * tmp_db = NULL; - int ret = g_unlink(dbfile); + int ret = unlink(dbfile); if ( ret != 0 && errno != ENOENT) return false; |