minor fixes for safecopy & safemap tests
[minix.git] / commands / cawf / regerror.c
blob01539061ff18fb5a0f09751fce856b5c1b47f80f
1 #include <stdio.h>
2 #include "regexp.h"
3 #include "proto.h"
5 void
6 regerror(s)
7 char *s;
9 #ifndef DOSPORT
10 #ifdef ERRAVAIL
11 error("regexp: %s", s);
12 #else
13 fprintf(stderr, "regexp(3): %s", s);
14 exit(1);
15 #endif
16 /* NOTREACHED */
17 #endif /* ifdef'd out for less's sake when reporting error inside less */