13 Commits

Author SHA1 Message Date
Ronnie Sahlberg 55555e27e3 Handle a bunch of other compiler warnings on armv6
and similararchectures that can not handle unaligned accesses
and where pointer conversions cause compiler warnings when converting
a pointer to a larger type.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-04-01 18:13:39 +10:00
Ronnie Sahlberg 66b0987872 Fix compiler warning about "cast increases required alignment"
Some ISA, like ARMv6, do not support unaligned memory accesses.
The cast here technically convert a the pointer target from a char to
another pointer.
However, as the buf field (char) is laid out after a pointer in the
structure definition, the alignment for buf is forced to the same
alignment as a pointer.
Thus the issue with unaligned access can not happen and the workaround
by re-casting the pointer via void * is safe.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-03-31 21:02:33 +10:00
Wolfywolfy 87c96e6b6c [W.I.P on IOP] Add cmake for ps2. 2024-05-27 18:38:42 -03:00
Wolf3s 960bd8774a Misc changes. 2024-04-28 19:09:41 -03:00
Wolfywolfy 54b6d7ab84 Remove unused variable 2024-01-26 08:41:58 -03:00
Wolfywolfy 8d41ddde01 Support sys/time.h, sys/fcntl.h and sys/unistd.h for ps2(and others) 2023-12-23 12:55:04 -03:00
Wolfywolfy e07f257cff Add c89 comments 2023-11-22 15:25:09 -03:00
Ronnie Sahlberg f841ed2480 ps2: support for ps2 EE environment
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-08-08 18:48:18 +10:00
Volker Lendecke 2a58027e84 Use calloc where appropriate
Saves around 250 bytes with -Oz
2019-11-06 09:47:32 +10:00
Anton Fedchin b94dc912c8 fix build with msvc toolset 2018-03-19 17:27:03 +03:00
Ronnie Sahlberg 53a2632f19 Make sure to clear out all the data allocated in smb2_alloc_init
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-04-13 18:47:16 -07:00
Ronnie Sahlberg 5118089d64 Add decoding of Security Descriptors
Also add a small helper utility that can be used to fetch and print
a security descriptor.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-04-13 16:18:42 -07:00
Ronnie Sahlberg 452a717262 Create a mem allocator and rework how query-info works
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-04-11 19:30:27 -07:00