mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 08:30:42 +01:00
Omudpspoof: Minor cleanup of compiler warnings.
This commit is contained in:
parent
3042fa3a61
commit
08f8ee1b49
@ -383,7 +383,7 @@ UDPSend(wrkrInstanceData_t *pWrkrData, uchar *pszSourcename, char *msg, size_t l
|
||||
|
||||
if(len > 65528) {
|
||||
DBGPRINTF("omudpspoof: msg with length %d truncated to 64k: '%.768s'\n",
|
||||
len, msg);
|
||||
(int) len, msg);
|
||||
len = 65528;
|
||||
}
|
||||
|
||||
@ -455,7 +455,7 @@ UDPSend(wrkrInstanceData_t *pWrkrData, uchar *pszSourcename, char *msg, size_t l
|
||||
* it is useful for consolidating with strace output.
|
||||
*/
|
||||
DBGPRINTF("omudpspoof: write error (total len %d): pktLen %d, sent %d, fd %d: %s\n",
|
||||
len, LIBNET_IPV4_H+LIBNET_UDP_H+pktLen, lsent, pWrkrData->libnet_handle->fd,
|
||||
(int) len, LIBNET_IPV4_H+LIBNET_UDP_H+pktLen, lsent, pWrkrData->libnet_handle->fd,
|
||||
libnet_geterror(pWrkrData->libnet_handle));
|
||||
if(lsent != -1) {
|
||||
bSendSuccess = RSTRUE;
|
||||
@ -504,7 +504,7 @@ UDPSend(wrkrInstanceData_t *pWrkrData, uchar *pszSourcename, char *msg, size_t l
|
||||
lsent = libnet_write(pWrkrData->libnet_handle);
|
||||
if(lsent != (int) (LIBNET_IPV4_H+pktLen)) {
|
||||
DBGPRINTF("omudpspoof: fragment write error len %d, sent %d: %s\n",
|
||||
LIBNET_IPV4_H+LIBNET_UDP_H+len, lsent, libnet_geterror(pWrkrData->libnet_handle));
|
||||
(int) (LIBNET_IPV4_H+LIBNET_UDP_H+len), lsent, libnet_geterror(pWrkrData->libnet_handle));
|
||||
bSendSuccess = RSFALSE;
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user