Fix build warning
parent
8807a1623b
commit
b5e04bf809
|
@ -551,8 +551,8 @@ void kv_cli_t::handle_cmd(const std::vector<std::string> & cmd, std::function<vo
|
||||||
fprintf(stderr, "Error: %s (code %d)\n", strerror(-res), res);
|
fprintf(stderr, "Error: %s (code %d)\n", strerror(-res), res);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
write(1, value.c_str(), value.size());
|
if (write(1, value.c_str(), value.size()) < 0 || write(1, "\n", 1) < 0)
|
||||||
write(1, "\n", 1);
|
exit(1);
|
||||||
}
|
}
|
||||||
cb(res);
|
cb(res);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue