Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
e2f6ee23
Commit
e2f6ee23
authored
Oct 28, 2015
by
charsyam
Browse files
fixing typos
parent
4b3786d5
Changes
6
Show whitespace changes
Inline
Side-by-side
async.c
View file @
e2f6ee23
...
...
@@ -489,7 +489,7 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
}
/* Internal helper function to detect socket status the first time a read or
* write event fires. When connecting was not succesful, the connect callback
* write event fires. When connecting was not succes
s
ful, the connect callback
* is called with a REDIS_ERR status and the context is free'd. */
static
int
__redisAsyncHandleConnect
(
redisAsyncContext
*
ac
)
{
redisContext
*
c
=
&
(
ac
->
c
);
...
...
dict.c
View file @
e2f6ee23
...
...
@@ -161,7 +161,7 @@ static int dictReplace(dict *ht, void *key, void *val) {
dictEntry
*
entry
,
auxentry
;
/* Try to add the element. If the key
* does not exists dictAdd will suceed. */
* does not exists dictAdd will suc
c
eed. */
if
(
dictAdd
(
ht
,
key
,
val
)
==
DICT_OK
)
return
1
;
/* It already exists, get the entry */
...
...
@@ -293,7 +293,7 @@ static void dictReleaseIterator(dictIterator *iter) {
/* Expand the hash table if needed */
static
int
_dictExpandIfNeeded
(
dict
*
ht
)
{
/* If the hash table is empty expand it to the intial size,
/* If the hash table is empty expand it to the in
i
tial size,
* if the table is "full" dobule its size. */
if
(
ht
->
size
==
0
)
return
dictExpand
(
ht
,
DICT_HT_INITIAL_SIZE
);
...
...
hiredis.c
View file @
e2f6ee23
...
...
@@ -822,10 +822,10 @@ int redisBufferRead(redisContext *c) {
/* Write the output buffer to the socket.
*
* Returns REDIS_OK when the buffer is empty, or (a part of) the buffer was
* succesfully written to the socket. When the buffer is empty after the
* succes
s
fully written to the socket. When the buffer is empty after the
* write operation, "done" is set to 1 (if given).
*
* Returns REDIS_ERR if an error occured trying to write and sets
* Returns REDIS_ERR if an error occur
r
ed trying to write and sets
* c->errstr to hold the appropriate error string.
*/
int
redisBufferWrite
(
redisContext
*
c
,
int
*
done
)
{
...
...
@@ -984,7 +984,7 @@ int redisAppendCommandArgv(redisContext *c, int argc, const char **argv, const s
* context is non-blocking, the "reply" pointer will not be used and the
* command is simply appended to the write buffer.
*
* Returns the reply when a reply was succesfully retrieved. Returns NULL
* Returns the reply when a reply was succes
s
fully retrieved. Returns NULL
* otherwise. When NULL is returned in a blocking context, the error field
* in the context will be set.
*/
...
...
hiredis.h
View file @
e2f6ee23
...
...
@@ -179,7 +179,7 @@ redisContext *redisConnectFd(int fd);
* host, ip (or path), timeout and bind address are reused,
* flags are used unmodified from the existing context.
*
* Returns REDIS_OK on successful
l
connect or REDIS_ERR otherwise.
* Returns REDIS_OK on successful connect or REDIS_ERR otherwise.
*/
int
redisReconnect
(
redisContext
*
c
);
...
...
read.h
View file @
e2f6ee23
...
...
@@ -38,7 +38,7 @@
#define REDIS_OK 0
/* When an error occurs, the err flag in a context is set to hold the type of
* error that occured. REDIS_ERR_IO means there was an I/O error and you
* error that occur
r
ed. REDIS_ERR_IO means there was an I/O error and you
* should use the "errno" variable to find out what is wrong.
* For other values, the "errstr" field will hold a description. */
#define REDIS_ERR_IO 1
/* Error in read or write */
...
...
sds.c
View file @
e2f6ee23
...
...
@@ -293,7 +293,7 @@ sds sdscpy(sds s, const char *t) {
* conversion. 's' must point to a string with room for at least
* SDS_LLSTR_SIZE bytes.
*
* The function returns the leng
h
t of the null-terminated string
* The function returns the lengt
h
of the null-terminated string
* representation stored at 's'. */
#define SDS_LLSTR_SIZE 21
int
sdsll2str
(
char
*
s
,
long
long
value
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment