Mercurial > audlegacy
changeset 2939:964413953abd trunk
Use portable g_ascii_strcasecmp().
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 29 Jun 2007 08:56:07 -0500 |
parents | d9a4d56b6081 |
children | b51cc33881c2 |
files | src/audtool/audtool_handlers_general.c src/audtool/audtool_handlers_playlist.c src/audtool/audtool_handlers_vitals.c src/audtool/audtool_main.c |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audtool/audtool_handlers_general.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/audtool/audtool_handlers_general.c Fri Jun 29 08:56:07 2007 -0500 @@ -144,7 +144,7 @@ for (i = 0; handlers[i].name != NULL; i++) { - if (!g_strcasecmp("<sep>", handlers[i].name)) + if (!g_ascii_strcasecmp("<sep>", handlers[i].name)) audtool_report("%s%s:", i == 0 ? "" : "\n", handlers[i].desc); else audtool_report(" %-34s - %s", handlers[i].name, handlers[i].desc);
--- a/src/audtool/audtool_handlers_playlist.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/audtool/audtool_handlers_playlist.c Fri Jun 29 08:56:07 2007 -0500 @@ -365,7 +365,7 @@ return; } - if (!strcasecmp(argv[1], "track_number") || !strcasecmp(argv[1], "year") || !strcasecmp(argv[1], "length") || !strcasecmp(argv[1], "mtime")) + if (!g_ascii_strcasecmp(argv[1], "track_number") || !g_ascii_strcasecmp(argv[1], "year") || !g_ascii_strcasecmp(argv[1], "length") || !g_ascii_strcasecmp(argv[1], "mtime")) { if (*(gint *)data > 0) {
--- a/src/audtool/audtool_handlers_vitals.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/audtool/audtool_handlers_vitals.c Fri Jun 29 08:56:07 2007 -0500 @@ -179,7 +179,7 @@ return; } - if (!strcasecmp(argv[1], "track_number") || !strcasecmp(argv[1], "year") || !strcasecmp(argv[1], "length") || !strcasecmp(argv[1], "mtime")) + if (!g_ascii_strcasecmp(argv[1], "track_number") || !g_ascii_strcasecmp(argv[1], "year") || !g_ascii_strcasecmp(argv[1], "length") || !g_ascii_strcasecmp(argv[1], "mtime")) { if (*(gint *)data > 0) {
--- a/src/audtool/audtool_main.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/audtool/audtool_main.c Fri Jun 29 08:56:07 2007 -0500 @@ -152,9 +152,9 @@ { for (i = 0; handlers[i].name != NULL; i++) { - if ((!g_strcasecmp(handlers[i].name, argv[j]) || - !g_strcasecmp(g_strconcat("--", handlers[i].name, NULL), argv[j])) - && g_strcasecmp("<sep>", handlers[i].name)) + if ((!g_ascii_strcasecmp(handlers[i].name, argv[j]) || + !g_ascii_strcasecmp(g_strconcat("--", handlers[i].name, NULL), argv[j])) + && g_ascii_strcasecmp("<sep>", handlers[i].name)) { handlers[i].handler(handlers[i].args + 1, &argv[j]); j += handlers[i].args;