write_graphite plugin: Use swrite() instead of write().
authorFlorian Forster <octo@collectd.org>
Wed, 8 Feb 2012 15:38:01 +0000 (16:38 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 8 Feb 2012 15:38:01 +0000 (16:38 +0100)
commit4c95b05e38f52460d7e89b98da5c2edddd37fc07
tree8db915c078fb44a6652e9b86fa307cbc138052d1
parentb44c85528c7449e9db4610e325fd9550f6ea1dd4
write_graphite plugin: Use swrite() instead of write().

swrite() ensures that the entire buffer is written before the buffer is reset.

Change-Id: I105d42d8ea5b71acd5a5e37b7cc4209045f28d47
src/write_graphite.c