--- ray/src/hd/rhdisp.c 1999/07/29 15:38:40 3.42 +++ ray/src/hd/rhdisp.c 2003/04/23 00:52:33 3.44 @@ -1,9 +1,6 @@ -/* Copyright (c) 1999 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: rhdisp.c,v 3.44 2003/04/23 00:52:33 greg Exp $"; #endif - /* * Holodeck display process. */ @@ -22,7 +19,9 @@ static char SCCSid[] = "$SunId$ SGI"; #define FSIZDEF 0.125 /* default focus frame size */ #endif -#ifdef linux +#if defined(freebsd) +#define fbufcnt(f) ((f)->_r) +#elif defined(__GNUC__) #define fbufcnt(f) ((f)->_IO_read_end - (f)->_IO_read_ptr) #else #define fbufcnt(f) ((f)->_cnt) @@ -61,7 +60,6 @@ main(argc, argv) int argc; char *argv[]; { - extern int eputs(); int rdy, inp, res = 0, pause = 0; progname = argv[0]; @@ -481,7 +479,8 @@ serv_result() /* get next server result and process if (buf == NULL) buf = (char *)malloc(bufsiz=msg.nbytes); else - buf = (char *)realloc(buf, bufsiz=msg.nbytes); + buf = (char *)realloc((void *)buf, + bufsiz=msg.nbytes); if (buf == NULL) error(SYSTEM, "out of memory in serv_result"); } @@ -568,6 +567,7 @@ char *p; } +void eputs(s) /* put error message to stderr */ register char *s; { @@ -587,6 +587,7 @@ register char *s; } +void quit(code) /* clean up and exit */ int code; {