--- ray/src/rt/editline.c 2003/06/30 19:04:29 2.6 +++ ray/src/rt/editline.c 2004/03/30 16:13:01 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: editline.c,v 2.6 2003/06/30 19:04:29 greg Exp $"; +static const char RCSid[] = "$Id: editline.c,v 2.8 2004/03/30 16:13:01 schorsch Exp $"; #endif /* * editline.c - routine for editing raw input for rview. @@ -10,6 +10,7 @@ static const char RCSid[] = "$Id: editline.c,v 2.6 200 #include "copyright.h" #include +#include #include "color.h" @@ -22,11 +23,12 @@ static const char RCSid[] = "$Id: editline.c,v 2.6 200 #define iskill(c) ((c) == 'U'-'@' || (c) == 'X'-'@') -void -editline(buf, c_get, s_put) /* edit input line */ -char *buf; -int (*c_get)(); -void (*s_put)(); +extern void +editline( /* edit input line */ + char *buf, + dr_getchf_t *c_get, + dr_comoutf_t *s_put +) { static char erases[] = "\b \b"; static char obuf[4]; @@ -84,7 +86,7 @@ register struct driver *d; for (cp = mybuf; *cp; cp++) ; comstart = cp; - while (*cp++ = *b) + while ( (*cp++ = *b) ) if (cp >= mybuf+sizeof(mybuf)) { *comstart = '\0'; return; /* what should I do about this? */