cleanup of warnings

This commit is contained in:
Mateico
2026-04-30 10:09:35 +02:00
parent 354e996485
commit 65961996d7
4 changed files with 13 additions and 13 deletions

View File

@@ -225,8 +225,8 @@ void notify(const char *fmt, ...) {
vsnprintf(buffer, sizeof(buffer), fmt, args);
va_end(args);
notify_internal(buffer);
printf(buffer);
notify_internal((uint8_t *)buffer);
printf("%s", buffer);
}
void notify_internal(uint8_t *msg) {
@@ -236,7 +236,7 @@ void notify_internal(uint8_t *msg) {
} req;
bzero(&req, sizeof(req));
uint64_t len =
strlen(msg) < (sizeof(req.msg) - 1) ? strlen(msg) : (sizeof(req.msg) - 1);
strlen((const char *)msg) < (sizeof(req.msg) - 1) ? strlen((const char *)msg) : (sizeof(req.msg) - 1);
memcpy(req.msg, msg, len);
sceKernelSendNotificationRequest(0, &req, sizeof(req), 0);
}