diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-10 15:27:58 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-10 15:27:58 +0000 |
commit | 53901c289ab0d1b82bc90ac84683db7f5524d34d (patch) | |
tree | 3ecc1bb4525a9e0754a002a409e4da69e583569c /indep.c | |
parent | [w3m-dev 02441] A patch against functions *_(un)?quote() (diff) | |
download | w3m-53901c289ab0d1b82bc90ac84683db7f5524d34d.tar.gz w3m-53901c289ab0d1b82bc90ac84683db7f5524d34d.zip |
[w3m-dev 02648] rewrite strCmp() with strcmp()
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'indep.c')
-rw-r--r-- | indep.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.15 2001/12/10 15:23:08 ukai Exp $ */ +/* $Id: indep.c,v 1.16 2001/12/10 15:27:59 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -33,14 +33,7 @@ allocStr(const char *s, int len) int strCmp(const void *s1, const void *s2) { - unsigned char *p1 = *(unsigned char **)s1; - unsigned char *p2 = *(unsigned char **)s2; - - while ((*p1 != '\0') && (*p1 == *p2)) { - p1++; - p2++; - } - return (*p1 - *p2); + return strcmp(*(const char **)s1, *(const char **)s2); } char * |