]> git.ipfire.org Git - thirdparty/git.git/commit - daemon.c
pkt-line: rename packet_write() to packet_write_fmt()
authorLars Schneider <larsxschneider@gmail.com>
Sun, 16 Oct 2016 23:20:29 +0000 (16:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 18:36:50 +0000 (11:36 -0700)
commit81c634e94f2fef0cec295f7554080c82bd6aeeb7
treeee53d4aa768f496f3f34f9945e0ff3266340d14d
parentac2fbaa674ce3d5b5faf6a83f88cc4af1654f9cd
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 <gitster@pobox.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/archive.c
builtin/receive-pack.c
builtin/remote-ext.c
builtin/upload-archive.c
connect.c
daemon.c
http-backend.c
pkt-line.c
pkt-line.h
shallow.c
upload-pack.c