Armin Novak
fe4cb6de65
[warnings] fix float/double warnings
2024-09-02 16:20:20 +02:00
akallabeth
1d33095500
[warnings] fix cert-err33-c
...
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
akallabeth
efde29f362
[winpr,utils] Set Queue_Enqueue only once
...
In #10527 performance was measured and SetEvent did take a lot of time
in these measurements. The reset is only required once though, so use a
more fine grained trigger condition.
2024-08-29 08:30:32 +02:00
akallabeth
d0addb52bd
[winpr,utils] Reset CountdownEvent_AddCount only once
...
In #10527 performance was measured and ResetEvent did take a lot of time
in these measurements. The reset is only required once though, so use a
more fine grained trigger condition.
2024-08-29 08:30:21 +02:00
akallabeth
4099bd4e45
[warnings] integer casts/checks
2024-07-02 12:38:00 +02:00
Armin Novak
98fa2d406d
[coverity] 1543226 Data race condition
2024-04-15 11:30:31 +02:00
akallabeth
8f9707897c
[coverity] 1543219 Dereference before null check
2024-04-12 12:41:42 +02:00
akallabeth
0c7537c840
[coverity] 1543230 Missing unlock
2024-04-12 09:45:09 +02:00
akallabeth
6217076b47
[coverity] 1543030 Dereference before null check
2024-04-12 09:45:09 +02:00
akallabeth
d7ebec5a65
[tidy] move loop variable declaration to loop
2024-02-22 12:31:50 +01:00
akallabeth
b894199f72
[winpr,collections] add generic string clone functions
...
The ArrayList, HashTable, ... New functions require
void* (*fkt)(const void* ptr) type functions. Provide a generic wrapper
for CHAR and WCHAR strdup to eliminate warnings. Also export a
corresponding free function to avoid issues with runtime
differences.
2024-02-15 11:49:16 +01:00
akallabeth
0ba995655d
[clang-tidy] cppcoreguidelines-init-variables
2024-02-15 11:49:16 +01:00
akallabeth
207def5c56
[clang-tidy] readability-isolate-declaration
2024-02-15 11:49:16 +01:00
akallabeth
ba8cf8cf21
[build] fix Wmismatched-deallocator warnings
...
With custom malloc function attributes the fail path in the _New
functions produces warnings due to allocator mismatches. Silence them.
2024-02-05 08:16:55 +01:00
Armin Novak
9f7cfe51ba
[pubsub] fix API definitons to avoid warnings
2023-10-16 15:10:13 +02:00
Armin Novak
f2aa469700
[winpr,collections] fix cast warnings
2023-07-28 13:42:12 +02:00
akallabeth
1f3f3682cc
[build] fix conversion warnings
2023-07-05 08:46:00 +02:00
akallabeth
0c15f72169
[winpr,collections] fixes for ListDictionary
...
* Make ListDictionary_Add and ListDictionary_SetItemValue arguments
const
* Allow ListDictionary_Add to store NULL values
2023-06-28 08:19:20 +02:00
akallabeth
e1ae901858
[winpr,collections] fix ListDictionary_Add
...
create copies of key and value if the function pointer are set
2023-06-27 15:05:43 +02:00
akallabeth
54847499e9
[winpr,collections] fix ListDictionary New/Free handling
2023-06-27 15:05:43 +02:00
akallabeth
f27076ab82
[winpr,collections] ListDictionary
2023-06-27 15:05:43 +02:00
akallabeth
0669cfe483
[winpr,collections] CountdownEvent
2023-06-27 15:05:43 +02:00
akallabeth
1fd0e15810
[winpr,collections] remove unused ReferenceTable
2023-06-27 15:05:43 +02:00
akallabeth
8e319c4fa7
[winpr,collections] LinkedList_Count
2023-06-27 15:05:43 +02:00
akallabeth
63d4da2d0d
[winpr,collections] ListDictionary_GetKeys
2023-06-27 15:05:43 +02:00
akallabeth
ac39e8aac2
[winpr,collections] ListDictionary_Count
2023-06-27 15:05:43 +02:00
Armin Novak
a4c6b36a19
[build] fix memory sanitizer stack frame warnings
2023-06-07 09:14:45 +02:00
Armin Novak
3d8cb485f4
[warnings] Fixed strict-prototypes warnings
2023-03-06 10:04:59 +01:00
akallabeth
92d3e3c64a
[winpr] use WINPR_ prefix for conditional includes
2023-01-10 17:38:00 +01:00
Armin Novak
dbb1889a54
Removed unused BipBuffer
2022-10-27 10:39:25 +02:00
Armin Novak
1d71ace487
Fixed PubSub, return error on NULL
2022-10-13 13:57:11 +02:00
akallabeth
23082b090c
Removed misleading comments
2022-10-11 13:28:30 +02:00
David Fort
1f08cb9a7d
Drdynvc needs love ( #8059 )
...
* winpr: add lock operation on HashTables
* drdynvc: change the listeners array for a hashtable and other micro cleanups
* logonInfo: drop warning that is shown at every connection
Let's avoid this log, we can't do anything if at Microsoft they don't respect
their own specs.
* rdpei: fix terminate of rdpei
* drdynvc: implement the channel list with a hashtable by channelId
2022-07-26 12:53:41 +02:00
akallabeth
9fee695ed0
Assert stream pool if duplicate entry is found
2022-06-27 11:21:24 +02:00
akallabeth
488a0d1edd
Fixed streampool release
2022-06-27 11:21:24 +02:00
akallabeth
bc8b4ade1c
reformatted
2022-06-23 08:48:39 +02:00
David Fort
77413f49b2
winpr: rework alignment functions
...
_align_XXX functions aren't widely available depending on the C runtime. That causes
problems with mingw where we can easily have some runtime mixes (which lead to mysterious
segfaults most of the time). This patch introduce winpr_aligned_XXX functions that will
either use the function available, or use an emulation layer.
2022-05-12 11:36:01 +02:00
akallabeth
d63817640f
Fixed ArrayList_SetItem, return success
2022-04-28 12:37:19 +02:00
akallabeth
ec699f6c75
scanbuild fixes
2022-04-28 12:37:19 +02:00
akallabeth
507722aca4
Fixed snprintf return value checks
2022-04-28 10:49:09 +02:00
akallabeth
2dfc1ddb12
Removed obsolete trio
2022-04-28 10:49:09 +02:00
akallabeth
667b471686
Fixed cast-quality warnings
2022-04-28 09:17:20 +02:00
Armin Novak
6ed50b4b1d
Refactored WinPR includes
2022-03-03 11:26:48 +01:00
akallabeth
8cc6582044
Unify struct definitions ( #7633 )
...
* Unified enum/struct definitions, fixed include issues
* Fixed mac compilation issues
* Added missing include
* Fixed windows server build warnings
* Fixed VS2010 build issue
* Removed unnecessary library linking
* Fixed ThreadPool WinXP compatibility
* Fixed pr review remarks
2022-02-14 14:59:22 +01:00
akallabeth
e6e6ed5dbd
Cleaned up PubSub
...
* Callback arguments now const
* Fixed missing includes
2022-01-19 09:24:57 +01:00
akallabeth
1326134cdf
Fixed warnings in BufferPool
2022-01-19 09:24:57 +01:00
Armin Novak
b30f8886b2
Fixed LinkedList const correctness
2021-12-15 13:36:15 +01:00
David Fort
67986ea298
Fix compilation with mingw
...
This patch addresses some issues when compiling against mingw. With these changes
FreeRDP can be compiled out-of-the box on a Ubuntu 20.04.
2021-11-15 09:23:16 +01:00
Armin Novak
fb924c6bbc
Fixed struct alignment
2021-10-18 16:09:13 +02:00
Armin Novak
319b0e1b7e
Queue_Enqueue const argument
...
By default use const for the object enqueued.
If a `fnObjectNew` function is set, it is copied anyway.
For the case without cast away the const internally.
2021-10-18 16:09:13 +02:00