diff src/doprnt.c @ 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 e3859c43c6f4
children 79358a3240fe
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')