diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1999-01-21 00:37:56 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1999-01-21 00:37:56 +0000 |
| commit | cb4547a33372e4b7fae89c161aca828965d25b7b (patch) | |
| tree | bd9b79a45bb48111d0c6ad9f020e506a5226d11d | |
| parent | ba40e000092ff633b70b379507d4ade38031a078 (diff) | |
Notes
| -rw-r--r-- | sys/dev/vinum/vinummemory.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c index af1eafb8afd3..c06bd9abd4db 100644 --- a/sys/dev/vinum/vinummemory.c +++ b/sys/dev/vinum/vinummemory.c @@ -33,12 +33,11 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: memory.c,v 1.4 1998/12/28 04:56:23 peter Exp $ + * $Id: vinummemory.c,v 1.19 1998/12/30 06:22:26 grog Exp grog $ */ #define REALLYKERNEL #include "opt_vinum.h" -#define USES_VM #include <dev/vinum/vinumhdr.h> extern jmp_buf command_fail; /* return on a failed command */ @@ -49,11 +48,9 @@ extern struct rqinfo rqinfo[]; extern struct rqinfo *rqip; #endif -#if __FreeBSD__ >= 3 /* Why aren't these declared anywhere? XXX */ int setjmp(jmp_buf); void longjmp(jmp_buf, int); -#endif void freedatabuf(struct mc *me); caddr_t allocdatabuf(struct mc *me); @@ -107,10 +104,12 @@ MMalloc(int size, char *file, int line) Debugger("Malloc overlap"); } if (result) { - char *f = index(file, '/'); /* chop off dirname if present */ + char *f = rindex(file, '/'); /* chop off dirname if present */ if (f == NULL) f = file; + else + f++; /* skip the / */ i = malloccount++; total_malloced += size; malloced[i].address = result; |
