(libretro-common) Cleanups

This commit is contained in:
twinaphex 2015-06-15 05:00:39 +02:00
parent 54c931755e
commit fb768eb608
3 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ static int parse_long(const struct option *longopts, char * const *argv)
const struct option *opt = NULL;
for (indice = 0; longopts[indice].name; indice++)
{
if (strcmp(longopts[indice].name, &argv[0][2]) == 0)
if (!strcmp(longopts[indice].name, &argv[0][2]))
{
opt = &longopts[indice];
break;

View File

@ -163,7 +163,7 @@ static int parse_dir_entry(const char *name, char *file_path,
if (!include_dirs && is_dir)
return 1;
if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0)
if (!strcmp(name, ".") || !strcmp(name, ".."))
return 1;
if (!is_compressed_file && !is_dir && ext_list && !supported_by_core)

View File

@ -509,9 +509,9 @@ int main (int argc, char *argv[])
for (i = 1; i < argc; i++)
if (argv[i][0] == '-' && argv[i][1] == 's')
MDString (argv[i] + 2);
else if (strcmp (argv[i], "-t") == 0)
else if (!strcmp (argv[i], "-t"))
MDTimeTrial ();
else if (strcmp (argv[i], "-x") == 0)
else if (!strcmp (argv[i], "-x"))
MDTestSuite ();
else MDFile (argv[i]);