21 Commits

Author SHA1 Message Date
Rainer Gerhards
fa37067f0d misc: add void parameter lists 2025-09-05 09:35:26 +02:00
Rainer Gerhards
b326c76f45 style: normalize C source formatting via clang-format (PoC)
This commit applies the new canonical formatting style using `clang-format` with custom settings (notably 4-space indentation), as part of our shift toward automated formatting normalization.

⚠️ No functional changes are included — only whitespace and layout modifications as produced by `clang-format`.

This change is part of the formatting modernization strategy discussed in:
https://github.com/rsyslog/rsyslog/issues/5747

Key context:
- Formatting is now treated as a disposable view, normalized via tooling.
- The `.clang-format` file defines the canonical style.
- A fixup script (`devtools/format-code.sh`) handles remaining edge cases.
- Formatting commits are added to `.git-blame-ignore-revs` to reduce noise.
- Developers remain free to format code however they prefer locally.
2025-07-16 13:56:21 +02:00
Dagobert Michelsen
fc2a32562a Add definition for strndup and do not define and assign at the same time 2020-01-06 14:33:11 +01:00
Philippe Duveau
3ec965f8b3 AIX_port: corrects style and compatibility issues (4) 2019-02-14 17:50:00 +01:00
Philippe Duveau
11c6365eba AIX_port: corrects style and compatibility issues (3) 2019-02-14 17:17:37 +01:00
Philippe Duveau
9ad7324dfa AIX_port: second phase 2019-02-14 14:36:05 +01:00
PascalWithopf
c83e3ed216 correct codestyle in rsyslog part 2 2018-08-01 16:11:33 +02:00
PascalWithopf
19133327cc correct codestyle in rsyslog 2018-07-31 09:44:27 +02:00
Rainer Gerhards
ee70c75182 bugfix: strndup() compatibility layer func copies too much
The function did not obey the upper limit, effectively becoming
a strdup(). This was only noticed when the compatibility layer
was required, most importantly on Solaris 10.
2018-02-16 08:36:24 +01:00
Rainer Gerhards
8d67c03d45 solaris: fix coding issues 2017-04-11 10:18:42 +02:00
Rainer Gerhards
ac13874e21 fix regression from AIX port
broke Solaris build
2017-04-03 12:39:51 +02:00
Rainer Gerhards
981e7121d8 re-enable building on Solaris 2017-04-03 12:09:09 +02:00
purnima
43859ad694 Fix AIX compilation error in ifaddrs.h 2016-11-24 13:53:05 +05:30
purnima
653434a4a5 Fix unintended changes in AIX Port 2016-11-22 16:51:07 +05:30
purnima
d45daa2af0 Rebase,redefine msgDestruct() as smsg_t is used 2016-11-22 14:24:25 +05:30
Rainer Gerhards
fd499cf64b bugfix: build system strndup was used even if not present
now added compatibility function. This came up on Solaris builds.
Thanks to Dagobert Michelsen for reporting the problem.
closes https://github.com/rsyslog/rsyslog/issues/347
2015-05-20 18:27:43 +02:00
Rainer Gerhards
100c3f8bf2 add missing file to tarball 2013-04-25 10:24:56 +02:00
Martin Carpenter
bf52ef7e7e fix compile on Solaris 2013-04-24 09:47:53 +02:00
Michael Biebl
d1caf0e291 build-sys: Change the compat library to noinst
It's supposed to be a convenience library and should not be installed.
2013-03-22 09:13:54 +01:00
Rainer Gerhards
e9fbf1880b compat dir: a bit restructuring and make sure config.h is included 2013-01-09 12:59:25 +01:00
Rainer Gerhards
d1cd01f3e9 Add compatibility library
Conflicts:

	configure.ac
2013-01-09 12:47:15 +01:00