Mon Jan 30 18:50:45 2012 UTC ()
Fix broken build by laundering const. hi joerg


(dholland)
diff -r1.6 -r1.7 src/external/bsd/mdocml/dist/roff.c

cvs diff -r1.6 -r1.7 src/external/bsd/mdocml/dist/roff.c (expand / switch to unified diff)

--- src/external/bsd/mdocml/dist/roff.c 2012/01/30 17:03:01 1.6
+++ src/external/bsd/mdocml/dist/roff.c 2012/01/30 18:50:45 1.7
@@ -564,27 +564,27 @@ roff_parsetext(char *p) @@ -564,27 +564,27 @@ roff_parsetext(char *p)
564 start = p; 564 start = p;
565 565
566 while ('\0' != *p) { 566 while ('\0' != *p) {
567 sz = strcspn(p, "-\\"); 567 sz = strcspn(p, "-\\");
568 p += sz; 568 p += sz;
569 569
570 if ('\0' == *p) 570 if ('\0' == *p)
571 break; 571 break;
572 572
573 if ('\\' == *p) { 573 if ('\\' == *p) {
574 /* Skip over escapes. */ 574 /* Skip over escapes. */
575 p++; 575 p++;
576 esc = mandoc_escape 576 esc = mandoc_escape
577 ((const char **)&p, NULL, NULL); 577 ((const char **)/*XXX*/(void *)&p, NULL, NULL);
578 if (ESCAPE_ERROR == esc) 578 if (ESCAPE_ERROR == esc)
579 break; 579 break;
580 continue; 580 continue;
581 } else if (p == start) { 581 } else if (p == start) {
582 p++; 582 p++;
583 continue; 583 continue;
584 } 584 }
585 585
586 if (isalpha((unsigned char)p[-1]) && 586 if (isalpha((unsigned char)p[-1]) &&
587 isalpha((unsigned char)p[1])) 587 isalpha((unsigned char)p[1]))
588 *p = ASCII_HYPH; 588 *p = ASCII_HYPH;
589 p++; 589 p++;
590 } 590 }