OSDN Git Service

PATCH: [ 1152967 ] Fix re_match_2 declaration warnings
authorPerry Rapp <elsapo@users.sourceforge.net>
Sun, 27 Feb 2005 18:03:43 +0000 (18:03 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Sun, 27 Feb 2005 18:03:43 +0000 (18:03 +0000)
Src/diffutils/lib/REGEX.C
Src/readme.txt

index fc97d03..a6aa27e 100644 (file)
@@ -3273,8 +3273,11 @@ re_match (struct re_pattern_buffer *bufp, const char *string, int size, int pos,
    matched substring.  */
 
 int
-re_match_2 (struct re_pattern_buffer *bufp, char *string1, int size1, char *string2, int size2, int pos, struct re_registers *regs, int stop)
+re_match_2 (struct re_pattern_buffer *bufp, const char *xstring1, int size1, const char *xstring2, int size2, int pos, struct re_registers *regs, int stop)
 {
+  char *string1 = (char *)xstring1;
+  char *string2 = (char *)xstring2;
+
   /* General temporaries.  */
   int mcnt;
   unsigned char *p1;
index 402cfa4..d115974 100644 (file)
@@ -2,6 +2,8 @@
  BUG: [ 1152913 ] LocationView type bugs?
   (Fixed 17 type conversion warnings in MSVC.NET 2003, mostly by explicit casts)
   Src: LocationView.cpp
+ PATCH: [ 1152967 ] Fix re_match_2 declaration warnings
+  Src/diffutils/lib: REGEX.C
 
 2005-02-26 Jochen
  PATCH: [ 1152256 ] UniFile may fail to read last line