summaryrefslogtreecommitdiff
path: root/src/doprnt.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-04-09 04:50:38 +0000
committerRichard M. Stallman <rms@gnu.org>1995-04-09 04:50:38 +0000
commit78b8293b4a8d2957aafca21f6ee3ac05f104c563 (patch)
tree7ee120d90aa8be071c25ba0814a319b92d30c4ad /src/doprnt.c
parentca6c3f34b782cd848a892140794de75415e140ad (diff)
downloademacs-78b8293b4a8d2957aafca21f6ee3ac05f104c563.tar.gz
(xmalloc, xrealloc): Declare them here.
(doprnt): Cast pointer to int by way of EMACS_INT.
Diffstat (limited to 'src/doprnt.c')
-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. */
#include <stdio.h>
#include <ctype.h>
+extern long *xmalloc (), *xrealloc ();
+
/* Generate output from a format-spec FORMAT,
terminated at position FORMAT_END.
Output goes in BUFFER, which has room for BUFSIZE chars.
@@ -186,7 +188,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
case 'c':
if (cnt == nargs)
error ("not enough arguments for format string");
- *charbuf = (int) args[cnt++];
+ *charbuf = (EMACS_INT) args[cnt++];
string = charbuf;
tem = 1;
if (fmtcpy[1] != 'c')