From 6c4cb1670a1f89ec3f38b67638cd76e161195358 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 22 Mar 2018 11:45:04 +0100 Subject: [PATCH] Add top comments in two addReply*() functions. --- src/networking.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/networking.c b/src/networking.c index f0bf6bf7..00558974 100644 --- a/src/networking.c +++ b/src/networking.c @@ -265,6 +265,7 @@ void _addReplyStringToList(client *c, const char *s, size_t len) { * The following functions are the ones that commands implementations will call. * -------------------------------------------------------------------------- */ +/* Add the object 'obj' string representation to the client output buffer. */ void addReply(client *c, robj *obj) { if (prepareClientToWrite(c) != C_OK) return; @@ -284,6 +285,8 @@ void addReply(client *c, robj *obj) { } } +/* Add the SDS 's' string to the client output buffer, as a side effect + * the SDS string is freed. */ void addReplySds(client *c, sds s) { if (prepareClientToWrite(c) != C_OK) { /* The caller expects the sds to be free'd. */