diff options
Diffstat (limited to 'sysutils/conky/files/patch-src-read_tcp.c')
-rw-r--r-- | sysutils/conky/files/patch-src-read_tcp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/conky/files/patch-src-read_tcp.c b/sysutils/conky/files/patch-src-read_tcp.c new file mode 100644 index 000000000000..f5b702ad6043 --- /dev/null +++ b/sysutils/conky/files/patch-src-read_tcp.c @@ -0,0 +1,11 @@ +--- src/read_tcp.c.orig ++++ src/read_tcp.c +@@ -87,7 +87,7 @@ void print_read_tcp(struct text_object *obj, char *p, int p_max_size) + addr.sin_family = AF_INET; + addr.sin_port = rtd->port; + memcpy(&addr.sin_addr, he->h_addr, he->h_length); +- if (!connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr))) { ++ if (connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr)) != 0) { + NORM_ERR("read_tcp: Couldn't create a connection"); + return; + } |