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 | |
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>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | indep.c | 11 |
2 files changed, 8 insertions, 10 deletions
@@ -1,3 +1,8 @@ +2001-12-11 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02648] rewrite strCmp() with strcmp() + * indep.c (strCmp): use strcmp() + 2001-12-11 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> * [w3m-dev 02441] A patch against functions *_(un)?quote() @@ -1133,4 +1138,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.120 2001/12/10 15:23:08 ukai Exp $ +$Id: ChangeLog,v 1.121 2001/12/10 15:27:58 ukai Exp $ @@ -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 * |