path: root/pkt-line.c
diff options
authorLars Schneider <>2016-10-16 23:20:29 (GMT)
committerJunio C Hamano <>2016-10-17 18:36:50 (GMT)
commit81c634e94f2fef0cec295f7554080c82bd6aeeb7 (patch)
treeee53d4aa768f496f3f34f9945e0ff3266340d14d /pkt-line.c
parentac2fbaa674ce3d5b5faf6a83f88cc4af1654f9cd (diff)
pkt-line: rename packet_write() to packet_write_fmt()
packet_write() should be called packet_write_fmt() because it is a printf-like function that takes a format string as first parameter. packet_write_fmt() should be used for text strings only. Arbitrary binary data should use a new packet_write() function that is introduced in a subsequent patch. Suggested-by: Junio C Hamano <> Signed-off-by: Lars Schneider <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'pkt-line.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/pkt-line.c b/pkt-line.c
index 30489c6..eeb8046 100644
--- a/pkt-line.c
+++ b/pkt-line.c
@@ -118,7 +118,7 @@ static void format_packet(struct strbuf *out, const char *fmt, va_list args)
packet_trace(out->buf + orig_len + 4, n - 4, 1);
-void packet_write(int fd, const char *fmt, ...)
+void packet_write_fmt(int fd, const char *fmt, ...)
static struct strbuf buf = STRBUF_INIT;
va_list args;