--- old/src/java.base/share/native/libjli/parse_manifest.c 2015-04-01 09:49:55.032910852 -0700 +++ new/src/java.base/share/native/libjli/parse_manifest.c 2015-04-01 09:49:54.608910851 -0700 @@ -133,7 +133,7 @@ /** Reads count bytes from fd at position pos into given buffer. */ static jboolean -readAt(int fd, jlong pos, size_t count, void *buf) { +readAt(int fd, jlong pos, unsigned int count, void *buf) { return (pos >= 0 && JLI_Lseek(fd, pos, SEEK_SET) == pos && read(fd, buf, count) == (jlong) count); @@ -249,7 +249,7 @@ */ if ((pos = JLI_Lseek(fd, -ENDHDR, SEEK_END)) < (jlong)0) return (-1); - if ((bytes = read(fd, eb, ENDHDR)) < 0) + if (read(fd, eb, ENDHDR) < 0) return (-1); if (ENDSIG_AT(eb)) { return find_positions64(fd, eb, pos, base_offset, censtart); @@ -268,7 +268,7 @@ return (-1); if ((buffer = malloc(END_MAXLEN)) == NULL) return (-1); - if ((bytes = read(fd, buffer, len)) < 0) { + if ((bytes = read(fd, buffer, (unsigned int)len)) < 0) { free(buffer); return (-1); } @@ -591,7 +591,7 @@ info->jre_version = NULL; info->jre_restrict_search = 0; info->splashscreen_image_file_name = NULL; - if (rc = find_file(fd, &entry, manifest_name) != 0) { + if ((rc = find_file(fd, &entry, manifest_name)) != 0) { close(fd); return (-2); } @@ -692,7 +692,7 @@ return (-1); } - if (rc = find_file(fd, &entry, manifest_name) != 0) { + if ((rc = find_file(fd, &entry, manifest_name)) != 0) { close(fd); return (-2); }