Skip to content

Commit 7e0c91d

Browse files
committed
fix more incompatible types
1 parent 57c2e7d commit 7e0c91d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

redis_commands.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ int redis_key_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
324324
void **ctx)
325325
{
326326
char *key;
327-
size_t key_len;
327+
int key_len;
328328
int key_free;
329329

330330
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len)
@@ -353,7 +353,7 @@ int redis_key_dbl_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
353353
void **ctx)
354354
{
355355
char *key;
356-
size_t key_len;
356+
int key_len;
357357
int key_free;
358358
double val;
359359

@@ -1217,7 +1217,7 @@ redis_atomic_increment(INTERNAL_FUNCTION_PARAMETERS, int type,
12171217
{
12181218
char *key;
12191219
int key_free;
1220-
size_t key_len;
1220+
int key_len;
12211221
long val = 1;
12221222

12231223
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &key, &key_len,

redis_session.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ PS_READ_FUNC(redis)
386386
PS_WRITE_FUNC(redis)
387387
{
388388
char *cmd, *response, *session;
389-
size_t cmd_len, response_len, session_len;
389+
size_t cmd_len, response_len;
390+
int session_len;
390391

391392
redis_pool *pool = PS_GET_MOD_DATA();
392393
redis_pool_member *rpm = redis_pool_get_sock(pool, key->val TSRMLS_CC);

0 commit comments

Comments
 (0)