summaryrefslogtreecommitdiff
path: root/src/doc.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2003-04-17 21:58:34 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2003-04-17 21:58:34 +0000
commit1ef634bd69929ee63c5dc4a264742f896c36c71b (patch)
treedc9b6b3b1852d5a617231b060b33b4bfd3ca2431 /src/doc.c
parente55b119e97bdd0e7a3044f99cde8119d8cc7095f (diff)
downloademacs-1ef634bd69929ee63c5dc4a264742f896c36c71b.tar.gz
(Fsubstitute_command_keys): Remove spurious casts.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/doc.c b/src/doc.c
index 3a53dc5174e..2d75ffe9753 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -725,7 +725,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
bsize = SBYTES (string);
bufp = buf = (unsigned char *) xmalloc (bsize);
- strp = (unsigned char *) SDATA (string);
+ strp = SDATA (string);
while (strp < SDATA (string) + SBYTES (string))
{
if (strp[0] == '\\' && strp[1] == '=')
@@ -761,7 +761,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
start = strp;
start_idx = start - SDATA (string);
- while ((strp - (unsigned char *) SDATA (string)
+ while ((strp - SDATA (string)
< SBYTES (string))
&& *strp != ']')
strp++;
@@ -770,7 +770,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
strp++; /* skip ] */
/* Save STRP in IDX. */
- idx = strp - (unsigned char *) SDATA (string);
+ idx = strp - SDATA (string);
tem = Fintern (make_string (start, length_byte), Qnil);
/* Note the Fwhere_is_internal can GC, so we have to take
@@ -821,8 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
start = strp;
start_idx = start - SDATA (string);
- while ((strp - (unsigned char *) SDATA (string)
- < SCHARS (string))
+ while ((strp - SDATA (string) < SCHARS (string))
&& *strp != '}' && *strp != '>')
strp++;
@@ -830,7 +829,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
strp++; /* skip } or > */
/* Save STRP in IDX. */
- idx = strp - (unsigned char *) SDATA (string);
+ idx = strp - SDATA (string);
/* Get the value of the keymap in TEM, or nil if undefined.
Do this while still in the user's current buffer