37 Commits

Author SHA1 Message Date
Josh Soref
9c67c4db9f fix spelling errors in text files 2019-12-26 17:37:14 +01:00
PascalWithopf
866336d997 activate codestyle for all files ending with .c/.h
Last changes to the codestyle and activation of
the codestyle checker.
2018-08-03 09:32:07 +02:00
Rainer Gerhards
4f8cfcbb54
codestyle fix - rough way
We did not totally fix all that we would like to see changed, but we
fixed it so that it permits us to finally run the style checker on all
files.

Needs some little manual fixup PR to follow.
2018-08-02 15:21:22 +02:00
PascalWithopf
19133327cc correct codestyle in rsyslog 2018-07-31 09:44:27 +02:00
Rainer Gerhards
461d5e3a63 omhttpfs: fix insecure usage if strncmp()
consequences not evaluated as this is a contributed module.

Detected by gcc 8.
2018-07-16 10:50:04 +02:00
Jan Gerhards
5cc2731a38 omhttpfs: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/pull/2259
2017-12-19 20:47:12 +01:00
Rainer Gerhards
04220bdd3f omhttpfs: "fix" Coverity scan false positive CID 185398 2017-12-02 12:08:34 +01:00
Rainer Gerhards
0c5b7a42b5 omhttpfs: better error handling for invalid legacy statement use
Detected by Coverity scan, CID 185398
2017-12-01 08:44:03 +01:00
Rainer Gerhards
ad9a247146 "fix" some Coverity scan false positives 2017-11-29 08:11:23 +01:00
Rainer Gerhards
a4c7f2ac81 module-template framework: avoid compiler warning in some legal cases
the finalize_it: label is required, but not always used, which each
time results in a compiler warning that needs to be worked around.
Now this is fixed once and for all for gcc and clang - the others
will probably not complain in any case. Great solution until something
comes up that makes us need a revision.
2017-11-22 11:08:34 +01:00
Rainer Gerhards
338e09cd09 "fix" Coverity scan false positive CID 185398 2017-11-22 08:38:58 +01:00
Rainer Gerhards
62dc5120f2 omhttpfs: flag Coverity-scan detected issue as intentional 2017-10-29 10:20:43 +01:00
Rainer Gerhards
3ac9051b12 cosmetic: build system still used JSON_C name
... but used it for libfastjson. This was a left-over when we
could use both json-c and libfastjson. As github user hdatma
pointed out, this was confusing to users. This has now been
changed to LIBFASTJSON. No functional changes.
2017-05-16 11:05:57 +02:00
Pascal Withopf
b63a6b9010 codestyle: line length adjusted 2017-01-17 08:54:37 +01:00
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Rainer Gerhards
c4a8f2819c omhttpfs: fix compiler warnings 2016-06-01 10:49:21 +02:00
Rainer Gerhards
837c9203d5 omhttpfs: solve clang static analyzer issue
fix a more or less cosmetic complaint
2016-05-20 10:46:22 +02:00
Rainer Gerhards
accfa81e5d cleanup: remove compatibility checks for old json-c
as we now use libfastjson, we do no longer need to check for "new"
features, as these are always present in libfastjson (things
like json_object_object_get_ex()).

closes https://github.com/rsyslog/rsyslog/issues/935
2016-04-05 12:16:09 +02:00
Rainer Gerhards
703c946e09 omhttpfs: code cleanup
* fix C++ style comments
* remove commented-out code

closes https://github.com/rsyslog/rsyslog/issues/677
2016-03-30 17:02:17 +02:00
Rainer Gerhards
b8b796c965 fix comments
C++ comments do not work on all platforms

fixed most, but left some due to running out of time
2016-01-13 06:16:36 -05:30
Rainer Gerhards
e5f5383117 Merge branch 'master' of https://github.com/c6226/rsyslog into master-candidate
Conflicts:
	contrib/omhttpfs/omhttpfs.c
2015-12-07 11:59:26 +01:00
Rainer Gerhards
b954652df5 omhttpfs: we cannot use printf in a module
stdout is closed, so the write goes to some random file
2015-12-07 09:56:44 +01:00
Rainer Gerhards
6af2fbf738 Merge branch 'master' of https://github.com/haixingood/rsyslog into travis-omhttpfs 2015-12-07 09:54:46 +01:00
Rainer Gerhards
087ecb691e omhttpfs: make build with older json-c
this is not the most optimal way to achive the result; anybody
feel free to improve this code and send a PR

also fix some incorrect code
2015-12-07 09:45:16 +01:00
Rainer Gerhards
ae88eb8f0e omhttpfs: fix build problems with older json-c 2015-12-06 17:42:22 +01:00
c6226
acdc0973c8 free the tokener and json before all return statements 2015-12-05 17:47:56 +08:00
haixingood
de8ce245c9 If realloc fails the original block is not free. So cause mem leak 2015-11-26 11:00:45 +08:00
haixingood
15991c8e62 If realloc fails the original block is not free. So cause mem leak 2015-11-26 10:57:55 +08:00
c6226
93fb37d2eb fix memory leak 2015-11-26 10:14:16 +08:00
c6226
2a4988a4c7 fix memory leak 2015-11-26 10:08:07 +08:00
c6226
b639b8d5ea fix for memory leak 2015-11-25 18:18:58 +08:00
Rainer Gerhards
23d04ecaa2 omhttpfs: some cleanup
removed duplicate json-c configure check
commented out unused code --> less compiler warnings
2015-05-19 09:56:45 +02:00
sskaje
9591820bda add lines of errmsg.logerr, change some return value 2015-02-03 17:31:47 +08:00
sskaje
f9d8ea5ca3 turn off curl verbose mode; add debug output 2015-01-08 16:34:45 +08:00
sskaje
a64c05209f remove useless entries 2015-01-05 18:41:01 +08:00
sskaje
ce94aab068 add testing envrionment 2014-12-12 18:07:57 +08:00
sskaje
a704b77943 move omhttpfs to contrib/ 2014-12-12 18:01:35 +08:00