summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShitalkumar Gandhi <shitalkumar.gandhi@seagate.com>2021-02-01 10:34:03 -0800
committerAlexander Amelkin <mocbuhtig@amelkin.msk.ru>2021-02-24 14:10:42 +0300
commitd674bfdc9a2447706ea9b0b943c98bcb0bbe80d2 (patch)
tree04a0e0fde1adcc7c32d6dd17310e73374994d0b9
parent050f5da63106e89ba11da3e5bac3f1e76209a3ef (diff)
downloadipmitool-d674bfdc9a2447706ea9b0b943c98bcb0bbe80d2.tar.gz
Fixed compiler warning.
This patch has been added to fix "error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]" Signed-off-by: Shitalkumar Gandhi <shitalkumar.gandhi@seagate.com>
-rw-r--r--lib/ipmi_tsol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipmi_tsol.c b/lib/ipmi_tsol.c
index 118eb49..7cf1bcc 100644
--- a/lib/ipmi_tsol.c
+++ b/lib/ipmi_tsol.c
@@ -376,7 +376,7 @@ ipmi_tsol_main(struct ipmi_intf *intf, int argc, char **argv)
char out_buff[IPMI_BUF_SIZE * 8];
char buff[IPMI_BUF_SIZE + 4];
int fd_socket, result, i;
- int out_buff_fill, in_buff_fill;
+ size_t out_buff_fill, in_buff_fill;
int ip1, ip2, ip3, ip4;
int read_only = 0, rows = 0, cols = 0;
int port = IPMI_TSOL_DEF_PORT;
@@ -534,7 +534,7 @@ ipmi_tsol_main(struct ipmi_intf *intf, int argc, char **argv)
if ((fds[0].revents & POLLIN) && (sizeof(out_buff) > out_buff_fill)) {
socklen_t sin_len = sizeof(sin);
- int buff_size = sizeof(buff);
+ size_t buff_size = sizeof(buff);
if ((sizeof(out_buff) - out_buff_fill + 4) < buff_size) {
buff_size = (sizeof(out_buff) - out_buff_fill) + 4;
if ((buff_size - 4) <= 0) {