SHA256
1
0
forked from pool/uwsgi
uwsgi/uwsgi-1.9.11-emperor_amqp-fix-comparison.patch
James Oakley 2c6855f163 - Fix path to uwsgi binary in service file
- Install uwsgi.ini
- Fix signed/unsigned comparison in emperor_amqp

OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=6
2013-05-31 20:55:51 +00:00

13 lines
391 B
Diff

--- a/plugins/emperor_amqp/amqp.c
+++ b/plugins/emperor_amqp/amqp.c
@@ -453,7 +453,8 @@ static int amqp_wait_connection_tune(int
static char *amqp_simple_get_frame(int fd, struct amqp_frame_header *fh) {
char *ptr = (char *) fh;
- ssize_t len = 0, rlen;
+ size_t len = 0;
+ ssize_t rlen;
while(len < 7) {
rlen = recv(fd, ptr, 7-len, 0);