OSDN Git Service

* src/lhext.c: replaced bcmp() with memcmp().
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 29 Jun 2002 04:32:41 +0000 (04:32 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 29 Jun 2002 04:32:41 +0000 (04:32 +0000)
* src/lha_macro.h: ditto.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@260 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/lha_macro.h
src/lhext.c

index 96e2866..ae5c26f 100644 (file)
@@ -325,6 +325,7 @@ typedef short                               node;
 # endif
 char *strchr (), *strrchr ();
 # if !HAVE_MEMCPY
+#  define memcmp(s1, s2, n) bcmp ((s1), (s2), (n))
 #  define memcpy(d, s, n) bcopy ((s), (d), (n))
 #  define memmove(d, s, n) bcopy ((s), (d), (n))
 # endif
index 64360c6..6542166 100644 (file)
@@ -240,7 +240,7 @@ extract_one(afp, hdr)
                   5, hdr->method, name);
                        return;
                }
-               if (bcmp(hdr->method, methods[method], 5) == 0)
+               if (memcmp(hdr->method, methods[method], 5) == 0)
                        break;
        }
 
@@ -253,7 +253,7 @@ extract_one(afp, hdr)
                       5, hdr->method, name);
                                return;
                        }
-                       if (bcmp(hdr->method, methods[method], 5) == 0)
+                       if (memcmp(hdr->method, methods[method], 5) == 0)
                                break;
                }
 #endif