aboutsummaryrefslogtreecommitdiff
path: root/pkt-line.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-02-20 15:01:56 -0500
committerJunio C Hamano <gitster@pobox.com>2013-02-20 13:42:21 -0800
commitcdf4fb8e332f9641ac1ca95e999fe98251d31392 (patch)
tree0c65db4797e4060603ef32092fa250ecfa4f3815 /pkt-line.h
parente148542870013e40d02490e692818a62691c1a10 (diff)
downloadgit-cdf4fb8e332f9641ac1ca95e999fe98251d31392.tar.gz
git-cdf4fb8e332f9641ac1ca95e999fe98251d31392.tar.xz
pkt-line: drop safe_write function
This is just write_or_die by another name. The one distinction is that write_or_die will treat EPIPE specially by suppressing error messages. That's fine, as we die by SIGPIPE anyway (and in the off chance that it is disabled, write_or_die will simulate it). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.h')
-rw-r--r--pkt-line.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkt-line.h b/pkt-line.h
index 7a67e9c65..3b6c19c4e 100644
--- a/pkt-line.h
+++ b/pkt-line.h
@@ -27,6 +27,5 @@ void packet_buf_write(struct strbuf *buf, const char *fmt, ...) __attribute__((f
int packet_read_line(int fd, char *buffer, unsigned size);
int packet_read(int fd, char *buffer, unsigned size);
int packet_get_line(struct strbuf *out, char **src_buf, size_t *src_len);
-ssize_t safe_write(int, const void *, ssize_t);
#endif