Fix some C++ issues.
This commit is contained in:
parent
20f37f20e8
commit
08cfb27f35
|
@ -571,7 +571,7 @@ static bool verify_command(const char *cmd)
|
||||||
bool network_cmd_send(const char *cmd_)
|
bool network_cmd_send(const char *cmd_)
|
||||||
{
|
{
|
||||||
if (!netplay_init_network())
|
if (!netplay_init_network())
|
||||||
return NULL;
|
return false;
|
||||||
|
|
||||||
char *command = strdup(cmd_);
|
char *command = strdup(cmd_);
|
||||||
if (!command)
|
if (!command)
|
||||||
|
|
|
@ -236,7 +236,7 @@ bool zlib_parse_file(const char *file, zlib_file_cb file_cb, void *userdata)
|
||||||
|
|
||||||
const struct zlib_file_backend *backend = zlib_get_default_file_backend();
|
const struct zlib_file_backend *backend = zlib_get_default_file_backend();
|
||||||
if (!backend)
|
if (!backend)
|
||||||
return NULL;
|
return false;
|
||||||
|
|
||||||
ssize_t zip_size = 0;
|
ssize_t zip_size = 0;
|
||||||
void *handle = backend->open(file);
|
void *handle = backend->open(file);
|
||||||
|
|
|
@ -79,7 +79,7 @@ int rl_fnmatch(const char *pattern, const char *string, int flags) {
|
||||||
case '\\':
|
case '\\':
|
||||||
c++;
|
c++;
|
||||||
// Dangling escape at end of pattern
|
// Dangling escape at end of pattern
|
||||||
if (c == '\0') {
|
if (*c == '\0') { // FIXME: Was c == '\0' (makes no sense). Not sure if c == NULL or *c == '\0' is intended. Assuming *c due to c++ right before.
|
||||||
return FNM_NOMATCH;
|
return FNM_NOMATCH;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue