From 407c176f7e3bb90f3b500630029c208944d6bf2a Mon Sep 17 00:00:00 2001 From: uyjulian Date: Fri, 11 Jun 2021 09:25:53 -0500 Subject: [PATCH] interface: fixed signedness warnings --- src/guigame.c | 4 ++-- src/httpclient.c | 4 ++-- src/nbns.c | 2 +- src/opl.c | 2 +- src/supportbase.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/guigame.c b/src/guigame.c index 007841c16..12d8c866e 100644 --- a/src/guigame.c +++ b/src/guigame.c @@ -478,14 +478,14 @@ static char *bdaddr_to_str(u8 *bdaddr, char *addstr) return addstr; } -static char *hex_to_str(u8 *str, u16 hex) +static char *hex_to_str(char *str, u16 hex) { sprintf(str, "%04X", hex); return str; } -static char *ver_to_str(u8 *str, u8 ma, u16 mi) +static char *ver_to_str(char *str, u8 ma, u16 mi) { if (ma > 9) ma = 0; diff --git a/src/httpclient.c b/src/httpclient.c index bc52f9b5d..6b394b4c7 100644 --- a/src/httpclient.c +++ b/src/httpclient.c @@ -24,7 +24,7 @@ void HttpDeinit(void) memset(&SifRpcClient, 0, sizeof(SifRpcClientData_t)); } -int HttpEstabConnection(s8 *server, u16 port) +int HttpEstabConnection(char *server, u16 port) { int result; @@ -44,7 +44,7 @@ void HttpCloseConnection(s32 HttpSocket) SifCallRpc(&SifRpcClient, HTTP_CLIENT_CMD_CONN_CLOSE, 0, RpcTxBuffer, sizeof(struct HttpClientConnCloseArgs), NULL, 0, NULL, NULL); } -int HttpSendGetRequest(s32 HttpSocket, const s8 *UserAgent, const s8 *host, s8 *mode, const u8 *mtime, const s8 *uri, u8 *output, u16 *out_len) +int HttpSendGetRequest(s32 HttpSocket, const char *UserAgent, const char *host, s8 *mode, const u8 *mtime, const char *uri, char *output, u16 *out_len) { int result; diff --git a/src/nbns.c b/src/nbns.c index 7f4d5aeca..280fc2bbb 100644 --- a/src/nbns.c +++ b/src/nbns.c @@ -6,7 +6,7 @@ #include "ioman.h" static SifRpcClientData_t SifRpcClient; -static unsigned char RpcBuffer[64] ALIGNED(64); +static char RpcBuffer[64] ALIGNED(64); int nbnsInit(void) { diff --git a/src/opl.c b/src/opl.c index 61de8d714..de62d2ef8 100644 --- a/src/opl.c +++ b/src/opl.c @@ -1131,7 +1131,7 @@ static void compatUpdate(item_list_t *support, unsigned char mode, config_set_t config_set_t *itemConfig, *downloadedConfig; u16 length; s8 ConnMode, hasMtime; - u8 *HttpBuffer; + char *HttpBuffer; int i, count, HttpSocket, result, retries, ConfigSource; iox_stat_t stat; u8 mtime[6]; diff --git a/src/supportbase.c b/src/supportbase.c index dc62ea4a5..edaece166 100644 --- a/src/supportbase.c +++ b/src/supportbase.c @@ -530,7 +530,7 @@ int sbPrepare(base_game_info_t *game, config_set_t *configSet, int size_cdvdman, int i; struct cdvdman_settings_common *settings; - unsigned int compatmask = 0; + int compatmask = 0; configGetInt(configSet, CONFIG_ITEM_COMPAT, &compatmask); char gameid[5];