[w3m-dev 02648] rewrite strCmp() with strcmp()
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
@@ -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 $
|
||||
|
11
indep.c
11
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 *
|
||||
|
Reference in New Issue
Block a user