Skip to content

Commit 6c4cb16

Browse files
committed
Add top comments in two addReply*() functions.
1 parent b86c26b commit 6c4cb16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/networking.c

+3
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ void _addReplyStringToList(client *c, const char *s, size_t len) {
265265
* The following functions are the ones that commands implementations will call.
266266
* -------------------------------------------------------------------------- */
267267

268+
/* Add the object 'obj' string representation to the client output buffer. */
268269
void addReply(client *c, robj *obj) {
269270
if (prepareClientToWrite(c) != C_OK) return;
270271

@@ -284,6 +285,8 @@ void addReply(client *c, robj *obj) {
284285
}
285286
}
286287

288+
/* Add the SDS 's' string to the client output buffer, as a side effect
289+
* the SDS string is freed. */
287290
void addReplySds(client *c, sds s) {
288291
if (prepareClientToWrite(c) != C_OK) {
289292
/* The caller expects the sds to be free'd. */

0 commit comments

Comments
 (0)