forked from pool/uwsgi
2c6855f163
- 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
13 lines
391 B
Diff
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);
|