diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-10-16 16:20:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-17 11:36:50 -0700 |
commit | 81c634e94f2fef0cec295f7554080c82bd6aeeb7 (patch) | |
tree | ee53d4aa768f496f3f34f9945e0ff3266340d14d /daemon.c | |
parent | ac2fbaa674ce3d5b5faf6a83f88cc4af1654f9cd (diff) | |
download | git-81c634e94f2fef0cec295f7554080c82bd6aeeb7.tar.gz |
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>
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +281,7 @@ static int daemon_error(const char *dir, const char *msg) { if (!informative_errors) msg = "access denied or repository not exported"; - packet_write(1, "ERR %s: %s", msg, dir); + packet_write_fmt(1, "ERR %s: %s", msg, dir); return -1; } |