# HG changeset patch # User Richard M. Stallman # Date 797403038 0 # Node ID aaf81f284f8300945f84d76e98054c5c5b1de6bf # Parent 95b2cea7c54a1f517fc6fb2aa7c684e58fa42765 (xmalloc, xrealloc): Declare them here. (doprnt): Cast pointer to int by way of EMACS_INT. diff -r 95b2cea7c54a -r aaf81f284f83 src/doprnt.c --- 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 #include +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')