From 7d2225da5070dd1928e6f001c10660e8e6a5eadd Mon Sep 17 00:00:00 2001 From: Thibault Godouet Date: Tue, 23 Jan 2007 22:51:31 +0000 Subject: [PATCH] use unsigned int and not signed it for a sizeof() value --- socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/socket.c b/socket.c index a81eac3..6df25bc 100644 --- a/socket.c +++ b/socket.c @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: socket.c,v 1.20 2006-06-05 20:03:08 thib Exp $ */ + /* $Id: socket.c,v 1.21 2007-01-23 22:51:31 thib Exp $ */ /* This file contains all fcron's code (server) to handle communication with fcrondyn */ @@ -762,7 +762,8 @@ void check_socket(int num) /* check for new connection, command, connection closed */ { - int fd = -1, avoid_fd = -1, addr_len = sizeof(struct sockaddr_un); + int fd = -1, avoid_fd = -1; + unsigned int addr_len = sizeof(struct sockaddr_un); struct sockaddr_un client_addr; long int buf_int[SOCKET_MSG_LEN]; int read_len = 0; -- 2.47.3