aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-09 04:50:38 +0000
committerRichard M. Stallman1995-04-09 04:50:38 +0000
commit1077c789f66dba5fbdd94eb71e9500ff2e490968 (patch)
tree45e7579eccd1f7fa2aaad9ec83a7e3677ad5d952 /src
parent7d5f0c0679337da47612e995fcbd0dbeda653a01 (diff)
downloademacs-1077c789f66dba5fbdd94eb71e9500ff2e490968.tar.gz
emacs-1077c789f66dba5fbdd94eb71e9500ff2e490968.zip
(xmalloc, xrealloc): Declare them here.
(doprnt): Cast pointer to int by way of EMACS_INT.
Diffstat (limited to 'src')
-rw-r--r--src/doprnt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doprnt.c b/src/doprnt.c
index 3ea758d71e8..1743c785f01 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -24,6 +24,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
24#include <stdio.h> 24#include <stdio.h>
25#include <ctype.h> 25#include <ctype.h>
26 26
27extern long *xmalloc (), *xrealloc ();
28
27/* Generate output from a format-spec FORMAT, 29/* Generate output from a format-spec FORMAT,
28 terminated at position FORMAT_END. 30 terminated at position FORMAT_END.
29 Output goes in BUFFER, which has room for BUFSIZE chars. 31 Output goes in BUFFER, which has room for BUFSIZE chars.
@@ -186,7 +188,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
186 case 'c': 188 case 'c':
187 if (cnt == nargs) 189 if (cnt == nargs)
188 error ("not enough arguments for format string"); 190 error ("not enough arguments for format string");
189 *charbuf = (int) args[cnt++]; 191 *charbuf = (EMACS_INT) args[cnt++];
190 string = charbuf; 192 string = charbuf;
191 tem = 1; 193 tem = 1;
192 if (fmtcpy[1] != 'c') 194 if (fmtcpy[1] != 'c')