#include <signal.h>
#include <sys/errno.h>
#include <termios.h>
-#include <strings.h>
+#include <string.h>
/* Non-zero means that we're doing the cadillac interface. */
int cadillac = 0;
\f
/* Examine a protocol packet from the driver. */
-static int
+static void
kernel_dispatch(queue)
int queue; /* Non-zero means we should just queue up
commands. */
char *tail;
int skipped;
- tail = rindex(req->newBreakpoint.fileName.text, '/');
+ tail = strrchr(req->newBreakpoint.fileName.text, '/');
if (!tail)
tail = req->newBreakpoint.fileName.text;
else
}
static void
-iosig()
+iosig(signo)
+ int signo;
{
while (1)
{