X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=pkt-line.c;h=2827ca772a3703f71bc588d0f6cacd5caa318fe7;hb=9336281c692c0f3b3e1f91ac226fc2a3e0574359;hp=93ea311443a37b81b85a72dc569c715417d7ef29;hpb=4fff9c7f30d7fef04be801bb465a47489570af75;p=git-core%2Fgit.git diff --git a/pkt-line.c b/pkt-line.c index 93ea31144..2827ca772 100644 --- a/pkt-line.c +++ b/pkt-line.c @@ -188,6 +188,12 @@ static int packet_write_gently(const int fd_out, const char *buf, size_t size) return 0; } +void packet_write(int fd_out, const char *buf, size_t size) +{ + if (packet_write_gently(fd_out, buf, size)) + die_errno("packet write failed"); +} + void packet_buf_write(struct strbuf *buf, const char *fmt, ...) { va_list args;