aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-14 18:31:50 +0000
committerRichard M. Stallman1995-04-14 18:31:50 +0000
commit8f1e2d16d676d45146f5d2057370c4f058cf95cd (patch)
treeb4237f8b07d683d75b0001baf7791138f7b189d7 /src
parenta039f5340b8c0c9703bee5e791aeb4d3ad1ee12a (diff)
downloademacs-8f1e2d16d676d45146f5d2057370c4f058cf95cd.tar.gz
emacs-8f1e2d16d676d45146f5d2057370c4f058cf95cd.zip
(init_editfns): Add casts.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 29eef9a707c..c0dabc71fb7 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -104,11 +104,11 @@ init_editfns ()
104 104
105#ifdef AMPERSAND_FULL_NAME 105#ifdef AMPERSAND_FULL_NAME
106 p = XSTRING (Vuser_full_name)->data; 106 p = XSTRING (Vuser_full_name)->data;
107 q = (char *) index (p, '&'); 107 q = (unsigned char *) index (p, '&');
108 /* Substitute the login name for the &, upcasing the first character. */ 108 /* Substitute the login name for the &, upcasing the first character. */
109 if (q) 109 if (q)
110 { 110 {
111 r = (char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); 111 r = (unsigned char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1);
112 bcopy (p, r, q - p); 112 bcopy (p, r, q - p);
113 r[q - p] = 0; 113 r[q - p] = 0;
114 strcat (r, XSTRING (Vuser_name)->data); 114 strcat (r, XSTRING (Vuser_name)->data);
@@ -118,7 +118,7 @@ init_editfns ()
118 } 118 }
119#endif /* AMPERSAND_FULL_NAME */ 119#endif /* AMPERSAND_FULL_NAME */
120 120
121 p = getenv ("NAME"); 121 p = (unsigned char *) getenv ("NAME");
122 if (p) 122 if (p)
123 Vuser_full_name = build_string (p); 123 Vuser_full_name = build_string (p);
124} 124}