From: Richard Levitte Date: Sun, 17 Sep 2000 18:08:38 +0000 (+0000) Subject: siglen is unsigned, so comparing it to less than 0 is silly, and X-Git-Tag: OpenSSL-engine-0_9_6-beta2~2^2~4 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=623eea376a7bff6d50c88407c10f279e6f838de4;ds=sidebyside siglen is unsigned, so comparing it to less than 0 is silly, and generates a compiler warning with Compaq C. --- diff --git a/apps/dgst.c b/apps/dgst.c index a151fb8457..5d5ab94aea 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -280,7 +280,7 @@ int MAIN(int argc, char **argv) } siglen = BIO_read(sigbio, sigbuf, siglen); BIO_free(sigbio); - if(siglen <= 0) { + if(siglen == 0) { BIO_printf(bio_err, "Error reading signature file %s\n", sigfile); ERR_print_errors(bio_err);