summaryrefslogtreecommitdiff
path: root/src/sds.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-05-24 19:43:11 +0200
committerantirez <antirez@gmail.com>2011-05-25 12:32:50 +0200
commit3bb818df405e667087fe3336cd91159790f63981 (patch)
tree080b97b60da3489522570f63b599ddbe21b6ebc0 /src/sds.h
parent449286a588c820ca1a120c2e9e8c57c1a31345a2 (diff)
downloadredis-3bb818df405e667087fe3336cd91159790f63981.tar.gz
Make sure error and status replies emitted by Lua scripts can never have more than a newline, otherwise it is a protocol violation and clients will desync.
Diffstat (limited to 'src/sds.h')
-rw-r--r--src/sds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sds.h b/src/sds.h
index ea43f8682..af5c4910b 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -85,5 +85,6 @@ sds sdsfromlonglong(long long value);
sds sdscatrepr(sds s, char *p, size_t len);
sds *sdssplitargs(char *line, int *argc);
void sdssplitargs_free(sds *argv, int argc);
+sds sdsmapchars(sds s, char *from, char *to, size_t setlen);
#endif