Skip to content

Commit

Permalink
Apply new blob-index changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
w32zhong committed Sep 5, 2016
1 parent 520ce53 commit 0b96863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indices/indices.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ bool indices_open(struct indices* indices, const char* index_path,
*/
sprintf(path, "%s/%s", index_path, blob_index_url_name);
blob_index_url = blob_index_open(path, (mode == INDICES_OPEN_RD) ?
"r" : "w+");
BLOB_OPEN_RD : BLOB_OPEN_WR);
if (NULL == blob_index_url) {
fprintf(stderr, "cannot create/open URL blob index.\n");

Expand All @@ -76,7 +76,7 @@ bool indices_open(struct indices* indices, const char* index_path,

sprintf(path, "%s/%s", index_path, blob_index_txt_name);
blob_index_txt = blob_index_open(path, (mode == INDICES_OPEN_RD) ?
"r" : "w+");
BLOB_OPEN_RD : BLOB_OPEN_WR);
if (NULL == blob_index_txt) {
fprintf(stderr, "cannot create/open text blob index.\n");

Expand Down

0 comments on commit 0b96863

Please sign in to comment.