Skip to content

Commit

Permalink
Cleanup OS X warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Feb 9, 2014
1 parent 07a8614 commit 82e24fc
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 64 deletions.
2 changes: 1 addition & 1 deletion admin/hyperspace_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ hyperspace_set_number_of_partitions(hyperspace* space, uint64_t num)
{
if (num < 1)
{
snprintf(space->buffer, BUFFER_SIZE, "the number of partitions must be positive, not %ld", num);
snprintf(space->buffer, BUFFER_SIZE, "the number of partitions must be positive, not 0");
space->buffer[BUFFER_SIZE - 1] = '\0';
space->error = space->buffer;
return HYPERSPACE_NO_SUBSPACE;
Expand Down
2 changes: 1 addition & 1 deletion common/datatype_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ datatype_map :: apply_inner(map_t* m,

if (!writeto)
{
return NULL;
return false;
}

//writeto = m_v->write(scratch->get(), e::slice(scratch->get(), writeto - scratch->get()));
Expand Down
Loading

0 comments on commit 82e24fc

Please sign in to comment.