changeset 11320:aaf81f284f83

(xmalloc, xrealloc): Declare them here. (doprnt): Cast pointer to int by way of EMACS_INT.
author Richard M. Stallman <rms@gnu.org>
date Sun, 09 Apr 1995 04:50:38 +0000
parents 95b2cea7c54a
children 0fdb1ee234e5
files src/doprnt.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/doprnt.c	Sun Apr 09 03:51:32 1995 +0000
+++ b/src/doprnt.c	Sun Apr 09 04:50:38 1995 +0000
@@ -24,6 +24,8 @@
 #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 @@
 	    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')