fix "comparison of unsigned expression < 0 is always false"

This commit is contained in:
Frank Meerkötter 2012-03-31 23:45:40 +02:00
parent 05fa4d341a
commit 8d65d26893
2 changed files with 2 additions and 2 deletions

View file

@ -469,7 +469,7 @@ cwc_send_msg(cwc_t *cwc, const uint8_t *msg, size_t len, int sid, int enq)
buf[4] = sid >> 8;
buf[5] = sid;
if((len = des_encrypt(buf, len, cwc)) < 0) {
if((len = des_encrypt(buf, len, cwc)) <= 0) {
free(buf);
free(cm);
return -1;

View file

@ -184,7 +184,7 @@ got_pat(const uint8_t *ptr, size_t len, void *opaque)
len -= 8;
ptr += 8;
if(len < 0)
if(len <= 0)
return;
pthread_mutex_lock(&global_lock);