Mercurial > emacs
changeset 11447:d51e912495be
(init_editfns): Add casts.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 14 Apr 1995 18:31:50 +0000 |
parents | cee0510aa3aa |
children | b0a7e8ff84ad |
files | src/editfns.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Fri Apr 14 18:28:45 1995 +0000 +++ b/src/editfns.c Fri Apr 14 18:31:50 1995 +0000 @@ -104,11 +104,11 @@ #ifdef AMPERSAND_FULL_NAME p = XSTRING (Vuser_full_name)->data; - q = (char *) index (p, '&'); + q = (unsigned char *) index (p, '&'); /* Substitute the login name for the &, upcasing the first character. */ if (q) { - r = (char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); + r = (unsigned char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); bcopy (p, r, q - p); r[q - p] = 0; strcat (r, XSTRING (Vuser_name)->data); @@ -118,7 +118,7 @@ } #endif /* AMPERSAND_FULL_NAME */ - p = getenv ("NAME"); + p = (unsigned char *) getenv ("NAME"); if (p) Vuser_full_name = build_string (p); }