Skip to content

Commit

Permalink
Fix use of resp_type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Dec 8, 2024
1 parent 631f74d commit 211809b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/redisx.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ int redisxLoadScript(Redis *redis, const char *script, char **sha1);
int redisxGetTime(Redis *redis, struct timespec *t);

RESP *redisxCopyOfRESP(const RESP *resp);
int redisxCheckRESP(const RESP *resp, char expectedType, int expectedSize);
int redisxCheckDestroyRESP(RESP *resp, char expectedType, int expectedSize);
int redisxCheckRESP(const RESP *resp, enum resp_type expectedType, int expectedSize);
int redisxCheckDestroyRESP(RESP *resp, enum resp_type, int expectedSize);
void redisxDestroyRESP(RESP *resp);
boolean redisxIsScalarType(const RESP *r);
boolean redisxIsStringType(const RESP *r);
Expand Down
4 changes: 2 additions & 2 deletions src/resp.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RESP *redisxCopyOfRESP(const RESP *resp) {
* or the error returned in resp->n.
*
*/
int redisxCheckRESP(const RESP *resp, char expectedType, int expectedSize) {
int redisxCheckRESP(const RESP *resp, enum resp_type expectedType, int expectedSize) {
static const char *fn = "redisxCheckRESP";

if(resp == NULL) return x_error(X_NULL, EINVAL, fn, "RESP is NULL");
Expand All @@ -174,7 +174,7 @@ int redisxCheckRESP(const RESP *resp, char expectedType, int expectedSize) {
* \sa redisxCheckRESP()
*
*/
int redisxCheckDestroyRESP(RESP *resp, char expectedType, int expectedSize) {
int redisxCheckDestroyRESP(RESP *resp, enum resp_type expectedType, int expectedSize) {
int status = redisxCheckRESP(resp, expectedType, expectedSize);
if(status) redisxDestroyRESP(resp);
prop_error("redisxCheckDestroyRESP", status);
Expand Down

0 comments on commit 211809b

Please sign in to comment.