Diff between 0c1145e4c34cbea3a382118c6b575db983e9d5ed and ce084da2e713d8432212006b6fc15f0a38f96d20

Changed Files

File Additions Deletions Status
tools/btsnoop.c +2 -2 modified

Full Patch

diff --git a/tools/btsnoop.c b/tools/btsnoop.c
index 0fde349..46bea93 100644
--- a/tools/btsnoop.c
+++ b/tools/btsnoop.c
@@ -218,7 +218,7 @@ next_packet:
 	flags = ntohl(input_pkt[select_input].flags);
 
 	len = read(input_fd[select_input], buf, toread);
-	if (len < 0 || len != toread) {
+	if (len < 0 || len != (ssize_t) toread) {
 		close(input_fd[select_input]);
 		input_fd[select_input] = -1;
 		goto next_packet;
@@ -260,7 +260,7 @@ next_packet:
 	}
 
 	written = write(output_fd, buf + 1, toread - 1);
-	if (written != toread - 1) {
+	if (written != (ssize_t) toread - 1) {
 		fprintf(stderr, "write of packet data failed\n");
 		goto close_output;
 	}