mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 10:30:40 +01:00
correct codestyle in rsyslog part 2
This commit is contained in:
parent
19133327cc
commit
c83e3ed216
@ -19,6 +19,9 @@ rsyslog_stylecheck -l 120 compat/ifaddrs.h \
|
||||
tests/inputfilegen.c \
|
||||
tests/msleep.c \
|
||||
tests/testconfgen.c \
|
||||
tests/testbench.h \
|
||||
tests/uxsockrcvr.c \
|
||||
tests/tcpflood.c \
|
||||
plugins/imfile/imfile.c \
|
||||
plugins/imrelp/imrelp.c \
|
||||
plugins/omrelp/omrelp.c \
|
||||
@ -72,6 +75,11 @@ rsyslog_stylecheck -l 120 compat/ifaddrs.h \
|
||||
plugins/mmanon/mmanon.c \
|
||||
plugins/mmdblookup/mmdblookup.c \
|
||||
plugins/omudpspoof/omudpspoof.c \
|
||||
plugins/omsnmp/omsnmp.c \
|
||||
plugins/imuxsock/imuxsock.c \
|
||||
plugins/pmciscoios/pmciscoios.c \
|
||||
plugins/imgssapi/imgssapi.c \
|
||||
plugins/ommongodb/ommongodb.c \
|
||||
grammar/testdriver.c \
|
||||
runtime/netstrms.h \
|
||||
runtime/lib_ksi_queue.h \
|
||||
@ -149,6 +157,30 @@ rsyslog_stylecheck -l 120 compat/ifaddrs.h \
|
||||
runtime/tcpsrv.h \
|
||||
runtime/janitor.c \
|
||||
runtime/linkedlist.c \
|
||||
runtime/tcpsrv.c \
|
||||
runtime/gss-misc.c \
|
||||
runtime/obj.c \
|
||||
runtime/hashtable/hashtable_utility.c \
|
||||
runtime/conf.c \
|
||||
runtime/hashtable_itr.h \
|
||||
runtime/debug.c \
|
||||
runtime/parser.h \
|
||||
runtime/strmsrv.c \
|
||||
runtime/queue.c \
|
||||
runtime/lib_ksi_queue.c \
|
||||
runtime/typedefs.h \
|
||||
runtime/tcpclt.c \
|
||||
runtime/statsobj.c \
|
||||
runtime/dnscache.c \
|
||||
runtime/unlimited_select.h \
|
||||
runtime/srutils.c \
|
||||
runtime/nsd_ptcp.c \
|
||||
runtime/net.c \
|
||||
runtime/msg.c \
|
||||
runtime/hashtable_itr.c \
|
||||
runtime/librsksi_read.c \
|
||||
runtime/hashtable/tester.c \
|
||||
runtime/hashtable.c \
|
||||
contrib/mmkubernetes/mmkubernetes.c \
|
||||
contrib/mmrfc5424addhmac/mmrfc5424addhmac.c \
|
||||
contrib/mmcount/mmcount.c \
|
||||
@ -166,5 +198,24 @@ rsyslog_stylecheck -l 120 compat/ifaddrs.h \
|
||||
contrib/omhiredis/omhiredis.c \
|
||||
contrib/omczmq/omczmq.c \
|
||||
contrib/omrabbitmq/omrabbitmq.c \
|
||||
compat/getifaddrs.c \
|
||||
grammar/rainerscript.h \
|
||||
grammar/rainerscript.c \
|
||||
tools/omfile.c \
|
||||
tools/rsyslogd.c \
|
||||
tools/syncdemo.c \
|
||||
tools/syslogd.c \
|
||||
tools/logctl.c \
|
||||
tools/omfwd.c \
|
||||
tools/pmrfc3164.c \
|
||||
tools/rscryutil.c \
|
||||
tools/pmrfc5424.c \
|
||||
tools/ompipe.c \
|
||||
parse.c \
|
||||
parse.h \
|
||||
action.h
|
||||
action.h \
|
||||
template.h \
|
||||
threads.c \
|
||||
outchannel.c \
|
||||
action.c \
|
||||
template.c
|
||||
|
||||
@ -53,7 +53,7 @@ hashtable_iterator_remove(struct hashtable_itr *itr);
|
||||
/*****************************************************************************/
|
||||
/* search - overwrite the supplied iterator, to point to the entry
|
||||
* matching the supplied key.
|
||||
h points to the hashtable to be searched.
|
||||
* h points to the hashtable to be searched.
|
||||
* returns zero if not found. */
|
||||
int
|
||||
hashtable_iterator_search(struct hashtable_itr *itr,
|
||||
|
||||
@ -161,7 +161,7 @@ bool ProtectedQueue_getItem(ProtectedQueue* this, size_t index, void** item) {
|
||||
}
|
||||
|
||||
/* Waits for a new work item or timeout (if specified). Returns 0 in case of exit
|
||||
condition, 1 if item became available and ETIMEDOUT in case of timeout. */
|
||||
* condition, 1 if item became available and ETIMEDOUT in case of timeout. */
|
||||
int ProtectedQueue_waitForItem(ProtectedQueue* this, void** item, uint64_t timeout) {
|
||||
struct timespec ts;
|
||||
pthread_mutex_lock(&this->mutex);
|
||||
|
||||
@ -1082,8 +1082,8 @@ should_use_so_bsdcompat(void)
|
||||
return 1;
|
||||
}
|
||||
/* Format is <version>.<patchlevel>.<sublevel><extraversion>
|
||||
where the first three are unsigned integers and the last
|
||||
is an arbitrary string. We only care about the first two. */
|
||||
* where the first three are unsigned integers and the last
|
||||
* is an arbitrary string. We only care about the first two. */
|
||||
if (sscanf(myutsname.release, "%u.%u", &version, &patchlevel) != 2) {
|
||||
dbgprintf("uname: unexpected release '%s'\r\n",
|
||||
myutsname.release);
|
||||
|
||||
@ -496,7 +496,7 @@ LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
|
||||
* could flood our log files by sending us tons of ICMP errors.
|
||||
*/
|
||||
/* AIXPORT : SO_BSDCOMPAT socket option is depricated , and its usage has been discontinued
|
||||
on most unixes, AIX does not support this option , hence remove the call.
|
||||
* on most unixes, AIX does not support this option , hence remove the call.
|
||||
*/
|
||||
#if !defined(_AIX)
|
||||
#ifndef BSD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user