Brenden Matthews
46abd3b75a
Apply fixes from clang-tidy/format.
2019-02-23 17:13:19 -05:00
lasers
7eec746b82
update copyright year to 2019
2019-01-05 11:15:36 -06:00
Nikolas Garofil
5dd23796a6
Use unsigned int for p_max_size in obj_cb.print
2018-08-08 15:54:47 -04:00
su8
7bca0ca881
Fix issues #439 , #303 ( #545 )
...
* Fix issues https://github.com/brndnmtthws/conky/issues/439 , https://github.com/brndnmtthws/conky/issues/303
* core.cc: Add missing header file
* core.cc: Check if we build for x11 and add the locks functions
* read_tcpip.cc: Fix for https://github.com/brndnmtthws/conky/issues/306
* read_tcpip.cc: Missing string format specifier for "snprintf()"
* read_tcpip.cc: Wrong signed int format specifier for "snprintf()"
* Missing many string format specifiers to "snprintf()"
2018-08-02 11:15:16 -04:00
Brenden Matthews
5b541b4609
Switch to safe versions of string functions. ( #504 )
2018-05-13 18:46:09 -04:00
Brenden Matthews
e91b91d85a
Apply a bunch of code fixes from sonarcloud. ( #492 )
2018-05-13 09:58:03 -04:00
Brenden Matthews
4b92556fca
Build improvements: clang-tidy, sonar, Dockerfile. ( #488 )
2018-05-12 19:26:31 -04:00
Brenden Matthews
eebc8c653b
Add formatting/static analysis ( #486 )
...
* Reform source with clang-format.
Rules applied with:
$ find . -iname *.h -o -iname *.cc | xargs clang-format \
-style=file -i -fallback-style=google
* Add clang-format and analyze to build.
Based on the excellent work at: https://github.com/ttroy50/cmake-examples
* Clean up CMake stuff on macOS.
* Remove vim/emacs modelines.
* Update copyright dates.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
2018-05-12 12:03:00 -04:00
Stephane Fontaine
c4f2e72baa
Avoid port number double conversion to network byte order. ( #281 )
...
It is taken take of by `getaddrinfo`.
2016-06-24 07:17:43 -07:00
Brenden Matthews
ddef05d4eb
Update version, copyright.
2012-05-03 16:34:44 -07:00
Jim Duchek
bf7248ecd6
Fixed GCC 4.7.0 issues, double buffering
...
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2012-05-03 14:06:50 -07:00
Pavel Labath
0852aa4fcd
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/ccurl_thread.cc
src/conky.cc
src/llua.cc
src/logging.h
src/nvidia.cc
2010-11-13 20:05:59 +01:00
Nikolas Garofil
be9b62f0aa
Show error when creating a empty udp package fails, this also fixes a g++ warning
2010-10-30 22:53:13 +02:00
Pavel Labath
ef2b39a97f
Make text_buffer_size a lua setting
2010-08-29 23:50:32 +02:00
Pavel Labath
abeadb59d7
Use getaddrinfo instead of gethostbyname
...
Patches conky to use getaddrinfo instead of gethostbyname everywhere. gethostbyname is rather
flawed and doesn't support IPv6 properly.
Patch contributed by Pascal Bleser
2010-08-15 15:56:36 +02:00
Alexander Graf
696d841e97
Compile under FreeBSD
...
This allows compilation under FreeBSD without errors.
read_tcpip.cc: Avoid using of SOCK_NONBLOCK argument for socket().
SOCK_NONBLOCK is Linux-specific and its use was substituted with a
fcntl() call after socket().
freebsd.cc: Change return type of update_*() to int, as required by
common.h.
Signed-off-by: Alexander Graf <agraf@znc.in>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-05-23 21:54:42 +02:00
Pavel Labath
a7513c76e5
better fix the gcc warning
2010-04-27 18:11:38 +02:00
Nikolas Garofil
b4bcc0814f
Solve some gcc warnings
2010-04-25 18:33:08 +02:00
Nikolas Garofil
45d63c7fba
Default tcp_ping port changed to 80
2010-04-24 12:33:40 +02:00
Nikolas Garofil
a2ae025f56
Add support for $tcp_ping
2010-04-24 01:40:24 +02:00
Nikolas Garofil
0047a132ab
Merge read_tcp and read_udp as much as possible
2010-04-17 02:31:37 +02:00