* xfont.c: conform to C89 pointer rules
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Feb 2011 05:44:50 +0000 (21:44 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Feb 2011 05:44:50 +0000 (21:44 -0800)
src/ChangeLog
src/xfont.c

index f646bd6..386a9b3 100644 (file)
@@ -26,6 +26,7 @@
        * callproc.c (Fcall_process): Likewise.
        * doprnt.c (doprnt): Likewise.
        * indent.c (compute_motion): Likewise.
+       * xfont.c (xfont_decode_coding_xlfd): Likewise.
        * character.c (strwidth): Make its argument const char *, not const
        unsigned char *, since more callers prefer it that way.  All callers
        changed.
index 222b4d9..f8aace3 100644 (file)
@@ -182,7 +182,7 @@ xfont_decode_coding_xlfd (char *xlfd, int len, char *output)
   while (*p0)
     {
       c = *(unsigned char *) p0++;
-      p1 += CHAR_STRING (c, p1);
+      p1 += CHAR_STRING (c, (unsigned char *) p1);
       if (--len == 0)
        break;
     }