From 40384806fd8eeb05606819033caf2548c3deb6da Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 21 Sep 2007 17:32:00 +0200 Subject: [PATCH] use a_strcmp() instead of strcmp() --- awesome.c | 2 +- config.c | 4 ++-- tag.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awesome.c b/awesome.c index ed9d647b5..37f907baf 100644 --- a/awesome.c +++ b/awesome.c @@ -284,7 +284,7 @@ main(int argc, char *argv[]) Atom netatom[NetLast]; event_handler **handler; - if(argc == 2 && !strcmp("-v", argv[1])) + if(argc == 2 && !a_strcmp("-v", argv[1])) { printf("awesome-" VERSION " © 2007 Julien Danjou\n"); return EXIT_SUCCESS; diff --git a/config.c b/config.c index 8f0b6b152..54633deda 100644 --- a/config.c +++ b/config.c @@ -127,7 +127,7 @@ key_mask_lookup(const char *keyname) if(keyname) for(i = 0; KeyModList[i].name; i++) - if(!strcmp(keyname, KeyModList[i].name)) + if(!a_strcmp(keyname, KeyModList[i].name)) return KeyModList[i].keysym; return 0; @@ -146,7 +146,7 @@ name_func_lookup(const char *funcname, const NameFuncLink * list) if(funcname && list) for(i = 0; list[i].name; i++) - if(!strcmp(funcname, list[i].name)) + if(!a_strcmp(funcname, list[i].name)) return list[i].func; return NULL; diff --git a/tag.c b/tag.c index 678ed7b93..a6ad1cbfa 100644 --- a/tag.c +++ b/tag.c @@ -44,7 +44,7 @@ idxoftag(const char *tag_to_find, char **tags, int ntags) return 0; for(i = 0; i < ntags; i++) - if(!strcmp(tags[i], tag_to_find)) + if(!a_strcmp(tags[i], tag_to_find)) return i; return 0;