diff files/patch-src_apps_common_hiredis__libevent2.c @ 26:4e4af36a675a

Update to GH version 4.6.0. On the first look: compiles ok, plist ok, packages ok.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Nov 2022 09:33:38 +0100
parents 735b41782ed7
children
line wrap: on
line diff
--- a/files/patch-src_apps_common_hiredis__libevent2.c	Mon Nov 07 09:13:47 2022 +0100
+++ b/files/patch-src_apps_common_hiredis__libevent2.c	Mon Nov 07 09:33:38 2022 +0100
@@ -1,4 +1,4 @@
---- src/apps/common/hiredis_libevent2.c.orig	2021-01-10 19:59:55 UTC
+--- src/apps/common/hiredis_libevent2.c.orig	2022-09-13 07:33:12 UTC
 +++ src/apps/common/hiredis_libevent2.c
 @@ -55,6 +55,7 @@ struct redisLibeventEvents
  	char *ip;
@@ -37,9 +37,9 @@
 +	ac = redisAsyncConnect(ip, port);
 +  }
    if (!ac) {
-   	fprintf(stderr,"Error: %s:%s\n", ac->errstr, ac->c.errstr);
+   	fprintf(stderr,"Error: redisAsyncConnect returned NULL\n");
    	return NULL;
-@@ -256,6 +265,11 @@ redis_context_handle redisLibeventAttach(struct event_
+@@ -260,6 +269,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 @@ redis_context_handle redisLibeventAttach(struct event_
+@@ -281,6 +295,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 @@ static void redis_reconnect(struct redisLibeventEvents
+@@ -331,7 +351,11 @@ static void redis_reconnect(struct redisLibeventEvents
  	  e->context = NULL;
    }