From: Andre Noll Date: Sat, 15 Mar 2008 18:12:32 +0000 (+0100) Subject: afh.c: Use write_all() instead of write(). X-Git-Tag: v0.3.2~61^2~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=087145d473a3956443e3ea50c48f5a104d43df5d afh.c: Use write_all() instead of write(). --- diff --git a/afh.c b/afh.c index 2ff2c786..86f34ace 100644 --- a/afh.c +++ b/afh.c @@ -105,11 +105,9 @@ static int cat_file(void *audio_file_data, struct afh_info *afhi) } } PARA_INFO_LOG("writing chunk %lu\n", i); - ret = write(STDOUT_FILENO, buf, size); + ret = write_all(STDOUT_FILENO, buf, &size); if (ret < 0) return ret; - if (ret != size) - return -E_AFH_SHORT_WRITE; } return 1; }