aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--indep.c11
2 files changed, 8 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index bfddb0f..eff70a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
diff --git a/indep.c b/indep.c
index 1ec952c..ca04dad 100644
--- a/indep.c
+++ b/indep.c
@@ -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 *