--- libaitrpc/src/aitrpc.c 2016/08/08 13:21:13 1.21 +++ libaitrpc/src/aitrpc.c 2024/03/20 17:32:30 1.22 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.c,v 1.21 2016/08/08 13:21:13 misho Exp $ +* $Id: aitrpc.c,v 1.22 2024/03/20 17:32:30 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2016 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -138,7 +138,6 @@ rpc_Read(int sock, int type, int flags, sockaddr_t * _ sockaddr_t sa2; socklen_t salen; int ret = 0, hlen, cx = 0; - ether_addr_t bcst = {{ [0 ... sizeof bcst - 1] = 0xff }}; u_char *buf = AIT_GET_BUF(pkt); size_t blen = AIT_LEN(pkt); struct tagRPCCall *rpc = (struct tagRPCCall *) buf; @@ -156,6 +155,7 @@ try2read: salen = E_SOCKADDR_MAX; #ifndef __linux__ sa2.ss.ss_len = salen; + ether_addr_t bcst = {{ [0 ... sizeof bcst - 1] = 0xff }}; #endif if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 || pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {