diff files/patch-src_apps_common_hiredis__libevent2.c @ 21:735b41782ed7

Update patches to 4.5.2
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 01 Sep 2021 21:56:11 +0200
parents 4a6383e57d12
children 4e4af36a675a
line wrap: on
line diff
--- a/files/patch-src_apps_common_hiredis__libevent2.c	Wed Sep 01 20:52:51 2021 +0200
+++ b/files/patch-src_apps_common_hiredis__libevent2.c	Wed Sep 01 21:56:11 2021 +0200
@@ -1,6 +1,6 @@
---- src/apps/common/hiredis_libevent2.c.orig
+--- src/apps/common/hiredis_libevent2.c.orig	2021-01-10 19:59:55 UTC
 +++ src/apps/common/hiredis_libevent2.c
-@@ -55,6 +55,7 @@
+@@ -55,6 +55,7 @@ struct redisLibeventEvents
  	char *ip;
  	int port;
  	char *pwd;
@@ -8,7 +8,7 @@
  	int db;
  };
  
-@@ -223,12 +224,13 @@
+@@ -223,12 +224,13 @@ void send_message_to_redis(redis_context_handle rch, c
  
  ///////////////////////// Attach /////////////////////////////////
  
@@ -23,7 +23,7 @@
    char ip[256];
    if(ip0 && ip0[0])
  	  STRCPY(ip,ip0);
-@@ -239,7 +241,14 @@
+@@ -239,7 +241,14 @@ redis_context_handle redisLibeventAttach(struct event_
    if(port0>0)
  	  port=port0;
  
@@ -39,7 +39,7 @@
    if (!ac) {
    	fprintf(stderr,"Error: %s:%s\n", ac->errstr, ac->c.errstr);
    	return NULL;
-@@ -256,6 +265,11 @@
+@@ -256,6 +265,11 @@ redis_context_handle redisLibeventAttach(struct event_
    e->port = port;
    if(pwd)
  	  e->pwd = strdup(pwd);
@@ -51,7 +51,7 @@
    e->db = db;
  
    /* Register functions to start/stop listening for events */
-@@ -277,6 +291,12 @@
+@@ -277,6 +291,12 @@ redis_context_handle redisLibeventAttach(struct event_
    		     e);
  
    if (e->rev == NULL || e->wev == NULL) {
@@ -64,7 +64,7 @@
  	  free(e);
  	  return NULL;
    }
-@@ -327,7 +347,11 @@
+@@ -327,7 +347,11 @@ static void redis_reconnect(struct redisLibeventEvents
  	  e->context = NULL;
    }