Skip to content

Commit

Permalink
interface: fixed signedness warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Jun 11, 2021
1 parent 83eea25 commit 407c176
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/guigame.c
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/httpclient.c
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/nbns.c
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/opl.c
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/supportbase.c
Expand Up @@ -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];
Expand Down

0 comments on commit 407c176

Please sign in to comment.